drivers/net/usb/r8152: remove the unneeded variable "ret" in rtl8152_system_suspend
authorzhong jiang <zhongjiang@huawei.com>
Thu, 9 Aug 2018 01:39:13 +0000 (09:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Aug 2018 18:23:25 +0000 (11:23 -0700)
rtl8152_system_suspend defines the variable "ret", but it is not modified
after initialization. So just remove it.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c

index 124211a..9774270 100644 (file)
@@ -4415,7 +4415,6 @@ out1:
 static int rtl8152_system_suspend(struct r8152 *tp)
 {
        struct net_device *netdev = tp->netdev;
-       int ret = 0;
 
        netif_device_detach(netdev);
 
@@ -4430,7 +4429,7 @@ static int rtl8152_system_suspend(struct r8152 *tp)
                napi_enable(napi);
        }
 
-       return ret;
+       return 0;
 }
 
 static int rtl8152_suspend(struct usb_interface *intf, pm_message_t message)