]> 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)
commitffddb02505e013140a350bbb7461ec91d0a16a4f
tree69245516ecc68b90e201c69278b566f0dd28e248
parent6dff915ca0d8aa13a340bdd052de996972b027c9
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