Commit 8a5e7b01 authored by Gengis Dave's avatar Gengis Dave Committed by Greg Kroah-Hartman

staging: gdm72xx: return values cleanup

Return values cleanup
Signed-off-by: default avatarDavide Gianforte <davide@gengisdave.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent add64526
......@@ -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,
......
......@@ -332,11 +332,8 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name,
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment