staging: gdm72xx: return values cleanup
Return values cleanup Signed-off-by: Davide Gianforte <davide@gengisdave.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
add6452615
commit
8a5e7b012d
|
@ -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 @@ 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)
|
||||
|
|
Loading…
Reference in a new issue