summaryrefslogtreecommitdiff
path: root/drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2018-06-28 12:31:25 +0300
committerDavid S. Miller <davem@davemloft.net>2018-06-30 18:46:52 +0900
commit5037c6280606396ab4d3065b066d4b574df020dc (patch)
tree0c0da461ae41fa5c560b883cc20ae6cfde5b72cd /drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c
parent92291c95e71a7898109c1f95adfb48aa69e5ba7b (diff)
cnic: tidy up a size calculation
Static checkers complain that id_tbl->table points to longs and 4 bytes is smaller than sizeof(long). But the since other side is dividing by 32 instead of sizeof(long), that means the current code works fine. Anyway, it's more conventional to use the BITS_TO_LONGS() macro when we're allocating a bitmap. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c')
0 files changed, 0 insertions, 0 deletions