Re: [PATCH net v3] net: set static variable an initial value in atl2_probe()

2019-02-23 Thread David Miller
From: Mao Wenan Date: Fri, 22 Feb 2019 14:57:23 +0800 > 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 Applied and queued up for -st

[PATCH net v3] net: set static variable an initial value in atl2_probe()

2019-02-21 Thread Mao Wenan
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 --- v1->v2: change the subject from "net: drop pointless static qualifier in atl2_probe()" to