]> git.baikalelectronics.ru Git - kernel.git/commit
net: set static variable an initial value in atl2_probe()
authorMao Wenan <maowenan@huawei.com>
Fri, 22 Feb 2019 06:57:23 +0000 (14:57 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 23 Feb 2019 21:47:13 +0000 (13:47 -0800)
commite19bc009b55b1ca220a9d81866497f454352c33c
treeea7c6861c7b594ae3ad5d1fc67109c75830f1e11
parentf73e6dfb224bb91526a7d2e8eadab872ce447614
net: set static variable an initial value in atl2_probe()

cards_found is a static variable, but when it enters atl2_probe(),
cards_found is set to zero, the value is not consistent with last probe,
so next behavior is not our expect.

Signed-off-by: Mao Wenan <maowenan@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/atheros/atlx/atl2.c