]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: fix boolreturn.cocci warning and rename function
authorEdward Cree <ecree@solarflare.com>
Mon, 24 Aug 2020 15:18:51 +0000 (16:18 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Aug 2020 01:14:23 +0000 (18:14 -0700)
commitae2a43b4a54adcc020a9cf1c69fb1f8dbb7830e0
treef3a0b6fe706a45a21f2ac44fb08de4df4f4a2c32
parentaba6bfb1a711c681901191f002175651daba64b8
sfc: fix boolreturn.cocci warning and rename function

check_fcs() was returning bool as 0/1, which was a sign that the sense
 of the function was unclear: false was good, which doesn't really match
 a name like 'check_$thing'.  So rename it to ef100_has_fcs_error(), and
 use proper booleans in the return statements.

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Edward Cree <ecree@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef100_rx.c