Skip to content

Commit 8a5e7b0

Browse files
Gengis Davegregkh
authored andcommitted
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>
1 parent add6452 commit 8a5e7b0

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

‎drivers/staging/gdm72xx/gdm_wimax.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,6 @@ static inline int gdm_wimax_header(struct sk_buff **pskb)
167167
{
168168
u16 buf[HCI_HEADER_SIZE / sizeof(u16)];
169169
struct sk_buff *skb = *pskb;
170-
int ret = 0;
171170

172171
if (unlikely(skb_headroom(skb) < HCI_HEADER_SIZE)) {
173172
struct sk_buff *skb2;
@@ -187,7 +186,7 @@ static inline int gdm_wimax_header(struct sk_buff **pskb)
187186
memcpy(skb->data, buf, HCI_HEADER_SIZE);
188187

189188
*pskb = skb;
190-
return ret;
189+
return 0;
191190
}
192191

193192
static void gdm_wimax_event_rcv(struct net_device *dev, u16 type, void *msg,

‎drivers/staging/gdm72xx/usb_boot.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,8 @@ static int em_download_image(struct usb_device *usbdev, const char *img_name,
332332

333333
static int em_fw_reset(struct usb_device *usbdev)
334334
{
335-
int ret;
336-
337335
/*Send ZLP*/
338-
ret = gdm_wibro_send(usbdev, NULL, 0);
339-
return ret;
336+
return gdm_wibro_send(usbdev, NULL, 0);
340337
}
341338

342339
int usb_emergency(struct usb_device *usbdev)

0 commit comments

Comments
 (0)