]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: align define usage to satisfy static checkers
authorAriel Elior <ariele@broadcom.com>
Wed, 9 Jan 2013 07:04:35 +0000 (07:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Jan 2013 22:14:16 +0000 (14:14 -0800)
commit8330e629530e51e7a11ad8078ed90615b3a8e96a
treee0a12d902d86df87f25e142a036f4269d5e5343d
parent5e3359dbb28ab635febe814f4aae31379f9a6675
bnx2x: align define usage to satisfy static checkers

Static checkers complained that the E1H_FUNC_MAX define is used
incorrectly in bnx2x_pretend_func(). The complaint was justified,
although its not a real bug, as the first part of the conditional
protects us in this case (a real bug would happen if a VF tried to
use the pretend func, but there are no VFs in E1H chips).

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c