提交 fb3b467e 编写于 作者: Z zhong jiang 提交者: David S. Miller

net:af_iucv: get rid of the unneeded variable 'err' in afiucv_pm_freeze

We will not use the variable 'err' after initalization, So remove it and
return 0.
Signed-off-by: Nzhong jiang <zhongjiang@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 e93dd8a1
...@@ -150,7 +150,6 @@ static int afiucv_pm_freeze(struct device *dev) ...@@ -150,7 +150,6 @@ static int afiucv_pm_freeze(struct device *dev)
{ {
struct iucv_sock *iucv; struct iucv_sock *iucv;
struct sock *sk; struct sock *sk;
int err = 0;
#ifdef CONFIG_PM_DEBUG #ifdef CONFIG_PM_DEBUG
printk(KERN_WARNING "afiucv_pm_freeze\n"); printk(KERN_WARNING "afiucv_pm_freeze\n");
...@@ -175,7 +174,7 @@ static int afiucv_pm_freeze(struct device *dev) ...@@ -175,7 +174,7 @@ static int afiucv_pm_freeze(struct device *dev)
skb_queue_purge(&iucv->backlog_skb_q); skb_queue_purge(&iucv->backlog_skb_q);
} }
read_unlock(&iucv_sk_list.lock); read_unlock(&iucv_sk_list.lock);
return err; return 0;
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册