netdevice: add the case if dev is NULL
Add the case if dev is NULL in dev_{put, hold}, so the caller doesn't
need to care whether dev is NULL or not.
Signed-off-by:
Yajun Deng <yajun.deng@linux.dev>
Signed-off-by:
David S. Miller <davem@davemloft.net>
Loading
Please sign in to comment