mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
ixgbe: Remove local variable
Remove local variable "match" and directly return evaluated conditional instead. Suggested-by: Alexander Duyck <alexander.duyck@gmail.com> Signed-off-by: Anirudh Venkataramanan <anirudh.venkataramanan@intel.com> Tested-by: Gurucharan <gurucharanx.g@intel.com> (A Contingent worker at Intel) Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
This commit is contained in:
parent
864f88884c
commit
6a6f9e3e03
|
|
@ -1996,18 +1996,13 @@ static bool ixgbe_check_lbtest_frame(struct ixgbe_rx_buffer *rx_buffer,
|
|||
unsigned int frame_size)
|
||||
{
|
||||
unsigned char *data;
|
||||
bool match = true;
|
||||
|
||||
frame_size >>= 1;
|
||||
|
||||
data = page_address(rx_buffer->page) + rx_buffer->page_offset;
|
||||
|
||||
if (data[3] != 0xFF ||
|
||||
data[frame_size + 10] != 0xBE ||
|
||||
data[frame_size + 12] != 0xAF)
|
||||
match = false;
|
||||
|
||||
return match;
|
||||
return data[3] == 0xFF && data[frame_size + 10] == 0xBE &&
|
||||
data[frame_size + 12] == 0xAF;
|
||||
}
|
||||
|
||||
static u16 ixgbe_clean_test_rings(struct ixgbe_ring *rx_ring,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user