net: dsa: remove redundant null pointer check before put_device
put_device has taken the null pinter check into account. So it is safe to remove the duplicated check before put_device. Signed-off-by: Nzhong jiang <zhongjiang@huawei.com> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
想要评论请 注册 或 登录