Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb3b467e authored by zhong jiang's avatar zhong jiang Committed by David S. Miller
Browse files

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: default avatarzhong jiang <zhongjiang@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent e93dd8a1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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;
}

/**