]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Pass in sh parameter to bnxt_set_dflt_rings().
authorMichael Chan <michael.chan@broadcom.com>
Mon, 29 May 2017 23:06:10 +0000 (19:06 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 30 May 2017 22:14:07 +0000 (18:14 -0400)
commit0740994818177b49d1dfa63287fb54420cb82d9b
tree69245516ecc68b90e201c69278b566f0dd28e248
parent5445f0132b11dc91ebb6790ac58be8185d3fe372
bnxt_en: Pass in sh parameter to bnxt_set_dflt_rings().

In the existing code, the local variable sh is hardcoded to true to
calculate default rings for shared ring configuration.  It is better
to have the caller determine the value of sh.

Reported-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c