projects
/
platform
/
kernel
/
linux-rpi3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e93dd8a
)
net:af_iucv: get rid of the unneeded variable 'err' in afiucv_pm_freeze
author
zhong jiang
<zhongjiang@huawei.com>
Tue, 7 Aug 2018 11:20:08 +0000
(19:20 +0800)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 Aug 2018 16:39:36 +0000
(09:39 -0700)
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>
net/iucv/af_iucv.c
patch
|
blob
|
history
diff --git
a/net/iucv/af_iucv.c
b/net/iucv/af_iucv.c
index
92ee91e
..
a21d8ed
100644
(file)
--- a/
net/iucv/af_iucv.c
+++ b/
net/iucv/af_iucv.c
@@
-150,7
+150,6
@@
static int afiucv_pm_freeze(struct device *dev)
{
struct iucv_sock *iucv;
struct sock *sk;
- int err = 0;
#ifdef CONFIG_PM_DEBUG
printk(KERN_WARNING "afiucv_pm_freeze\n");
@@
-175,7
+174,7
@@
static int afiucv_pm_freeze(struct device *dev)
skb_queue_purge(&iucv->backlog_skb_q);
}
read_unlock(&iucv_sk_list.lock);
- return
err
;
+ return
0
;
}
/**