提交 ec5a0ec1 编写于 作者: S Sudip Mukherjee 提交者: David S. Miller

hamradio: 6pack: remove unnecessary check

this is check for dev is unnecessary, as we are already checking dev
after allocating it via alloc_netdev, and jumping to label: out
if it is NULL.
Signed-off-by: NSudip Mukherjee <sudip@vectorindia.org>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 4e235761
......@@ -675,8 +675,7 @@ static int sixpack_open(struct tty_struct *tty)
kfree(xbuff);
kfree(rbuff);
if (dev)
free_netdev(dev);
free_netdev(dev);
out:
return err;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册