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)
commit702c221ca64060b81af4461553be19cba275da8b
tree69245516ecc68b90e201c69278b566f0dd28e248
parent4d172f21cefe896df8477940269b8d52129f8c87
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