summaryrefslogtreecommitdiffstats
path: root/net/iucv
diff options
context:
space:
mode:
authorzhong jiang <zhongjiang@huawei.com>2018-08-07 07:20:08 -0400
committerDavid S. Miller <davem@davemloft.net>2018-08-08 12:39:36 -0400
commitfb3b467e067385748445c5295fdbde548b631cb2 (patch)
treed7a33b9ea3f04b8d34e8cb0ef976916fbdc3fc57 /net/iucv
parente93dd8a1ac3141290936f174b81f4a9ba0c1c8a6 (diff)
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: zhong jiang <zhongjiang@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/iucv')
-rw-r--r--net/iucv/af_iucv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/iucv/af_iucv.c b/net/iucv/af_iucv.c
index 92ee91e34395..a21d8ed0a325 100644
--- a/net/iucv/af_iucv.c
+++ b/net/iucv/af_iucv.c
@@ -150,7 +150,6 @@ static int afiucv_pm_freeze(struct device *dev)
150{ 150{
151 struct iucv_sock *iucv; 151 struct iucv_sock *iucv;
152 struct sock *sk; 152 struct sock *sk;
153 int err = 0;
154 153
155#ifdef CONFIG_PM_DEBUG 154#ifdef CONFIG_PM_DEBUG
156 printk(KERN_WARNING "afiucv_pm_freeze\n"); 155 printk(KERN_WARNING "afiucv_pm_freeze\n");
@@ -175,7 +174,7 @@ static int afiucv_pm_freeze(struct device *dev)
175 skb_queue_purge(&iucv->backlog_skb_q); 174 skb_queue_purge(&iucv->backlog_skb_q);
176 } 175 }
177 read_unlock(&iucv_sk_list.lock); 176 read_unlock(&iucv_sk_list.lock);
178 return err; 177 return 0;
179} 178}
180 179
181/** 180/**