Commit b37a466
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>1 parent 1160dfa commit b37a466
1 file changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4143 | 4143 | | |
4144 | 4144 | | |
4145 | 4145 | | |
| 4146 | + | |
4146 | 4147 | | |
4147 | | - | |
| 4148 | + | |
4148 | 4149 | | |
4149 | | - | |
| 4150 | + | |
4150 | 4151 | | |
| 4152 | + | |
4151 | 4153 | | |
4152 | 4154 | | |
4153 | 4155 | | |
| |||
4158 | 4160 | | |
4159 | 4161 | | |
4160 | 4162 | | |
| 4163 | + | |
4161 | 4164 | | |
4162 | | - | |
| 4165 | + | |
4163 | 4166 | | |
4164 | | - | |
| 4167 | + | |
4165 | 4168 | | |
| 4169 | + | |
4166 | 4170 | | |
4167 | 4171 | | |
4168 | 4172 | | |
| |||
0 commit comments