staging: gdm72xx: return values cleanup
authorGengis Dave <root@gengisdave.org>
Thu, 22 May 2014 23:07:13 +0000 (01:07 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 23 May 2014 17:15:21 +0000 (02:15 +0900)
Return values cleanup

Signed-off-by: Davide Gianforte <davide@gengisdave.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gdm72xx/gdm_wimax.c
drivers/staging/gdm72xx/usb_boot.c

index 492bc78c250dcc3f5c4c4a834ed338d5166330c0..2c917c12db2bdc9a28354132b378abcbddd82ee1 100644 (file)
@@ -167,7 +167,6 @@ static inline int gdm_wimax_header(struct sk_buff **pskb)
 {
        u16 buf[HCI_HEADER_SIZE / sizeof(u16)];
        struct sk_buff *skb = *pskb;
-       int ret = 0;
 
        if (unlikely(skb_headroom(skb) < HCI_HEADER_SIZE)) {
                struct sk_buff *skb2;
@@ -187,7 +186,7 @@ static inline int gdm_wimax_header(struct sk_buff **pskb)
        memcpy(skb->data, buf, HCI_HEADER_SIZE);
 
        *pskb = skb;
-       return ret;
+       return 0;
 }
 
 static void gdm_wimax_event_rcv(struct net_device *dev, u16 type, void *msg,
index 75149d7027db77b3d7a6e80485476f0c0026b918..7d235b161ae6d69d137d7844f3b55da35dcf2034 100644 (file)
@@ -332,11 +332,8 @@ out:
 
 static int em_fw_reset(struct usb_device *usbdev)
 {
-       int ret;
-
        /*Send ZLP*/
-       ret = gdm_wibro_send(usbdev, NULL, 0);
-       return ret;
+       return gdm_wibro_send(usbdev, NULL, 0);
 }
 
 int usb_emergency(struct usb_device *usbdev)