Skip to content
Commit e90f686b authored by Fugang Duan's avatar Fugang Duan Committed by David S. Miller
Browse files

net: fec: restore dev_id in the cases of probe error



The static variable dev_id always plus one before netdev registerred.
It should restore the dev_id value in the cases of probe error.

Signed-off-by: default avatarFugang Duan <fugang.duan@nxp.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f1c8d372
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment