]> git.baikalelectronics.ru Git - kernel.git/commit
netdevice: add the case if dev is NULL
authorYajun Deng <yajun.deng@linux.dev>
Thu, 5 Aug 2021 11:54:34 +0000 (19:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2021 12:29:26 +0000 (13:29 +0100)
commit8a32d00ea2a02ab22d4cdfe2e99fc2e30d7a9726
treeb3a7d2adfc7315c7e4c5e688c7cdbb5f56991745
parentef5227b2a393f226732de93e3d6f072f17361690
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>
include/linux/netdevice.h