]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net:af_iucv: get rid of the unneeded variable 'err' in afiucv_pm_freeze
authorzhong jiang <zhongjiang@huawei.com>
Tue, 7 Aug 2018 11:20:08 +0000 (19:20 +0800)
committerDavid 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

index 92ee91e343959036fb238c060af85937e4e16a7b..a21d8ed0a325a5ddafd316b3fc9d972489cb8b7a 100644 (file)
@@ -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;
 }
 
 /**