]> git.baikalelectronics.ru Git - kernel.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)
commit7508138a37e0738d8bbddde1f09f13613eec98df
treee530c70ab22f43123fa64840bec4bf951d77d82c
parent86eba8d197b645ccd92168db3657a286ebfd2eee
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