]> 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)
commitdcad78411c063868c025f8e3791a30add6de86d4
treeea7c6861c7b594ae3ad5d1fc67109c75830f1e11
parentdd988fbbe1ff0fd3987430ec5aa72077a22cf178
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