]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: bnxt: Fix a uninitialized variable warning.
authorzhong jiang <zhongjiang@huawei.com>
Tue, 18 Sep 2018 07:15:44 +0000 (15:15 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Sep 2018 03:04:40 +0000 (20:04 -0700)
commit65fac4fe9080714df80d430888834ce87c6716ba
treee530c70ab22f43123fa64840bec4bf951d77d82c
parent6344244c71fdb797853ad5d0b9a076b911fa18a4
net: bnxt: Fix a uninitialized variable warning.

Fix the following compile warning:

drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c:49:5: warning: \91nvm_param.dir_type\92 may be used uninitialized in this function [-Wmaybe-uninitialized]
  if (nvm_param.dir_type == BNXT_NVM_PORT_CFG)

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Acked-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c