提交 d75b6c61 编写于 作者: A Adrian Nicoara 提交者: Greg Kroah-Hartman

staging: ozwpan: fix redundant else after break or return

Cleanup checkpatch.pl warnings.
Signed-off-by: NAdrian Nicoara <anicoara@uwaterloo.ca>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 ce6880e1
...@@ -1010,10 +1010,9 @@ void oz_hcd_data_ind(void *hport, u8 endpoint, const u8 *data, int data_len) ...@@ -1010,10 +1010,9 @@ void oz_hcd_data_ind(void *hport, u8 endpoint, const u8 *data, int data_len)
urb->actual_length = copy_len; urb->actual_length = copy_len;
oz_complete_urb(port->ozhcd->hcd, urb, 0); oz_complete_urb(port->ozhcd->hcd, urb, 0);
return; return;
} else {
oz_dbg(ON, "buffering frame as URB is not available\n");
oz_hcd_buffer_data(ep, data, data_len);
} }
oz_dbg(ON, "buffering frame as URB is not available\n");
oz_hcd_buffer_data(ep, data, data_len);
break; break;
case USB_ENDPOINT_XFER_ISOC: case USB_ENDPOINT_XFER_ISOC:
oz_hcd_buffer_data(ep, data, data_len); oz_hcd_buffer_data(ep, data, data_len);
...@@ -1903,8 +1902,7 @@ static int oz_hcd_hub_status_data(struct usb_hcd *hcd, char *buf) ...@@ -1903,8 +1902,7 @@ static int oz_hcd_hub_status_data(struct usb_hcd *hcd, char *buf)
spin_unlock_bh(&ozhcd->hcd_lock); spin_unlock_bh(&ozhcd->hcd_lock);
if (buf[0] != 0 || buf[1] != 0) if (buf[0] != 0 || buf[1] != 0)
return 2; return 2;
else return 0;
return 0;
} }
/* /*
......
...@@ -496,11 +496,10 @@ static int oz_send_next_queued_frame(struct oz_pd *pd, int more_data) ...@@ -496,11 +496,10 @@ static int oz_send_next_queued_frame(struct oz_pd *pd, int more_data)
oz_dbg(TX_FRAMES, "Sending ISOC Frame, nb_isoc= %d\n", oz_dbg(TX_FRAMES, "Sending ISOC Frame, nb_isoc= %d\n",
pd->nb_queued_isoc_frames); pd->nb_queued_isoc_frames);
return 0; return 0;
} else {
kfree_skb(skb);
oz_dbg(TX_FRAMES, "Dropping ISOC Frame>\n");
return -1;
} }
kfree_skb(skb);
oz_dbg(TX_FRAMES, "Dropping ISOC Frame>\n");
return -1;
} }
pd->last_sent_frame = e; pd->last_sent_frame = e;
...@@ -813,8 +812,7 @@ int oz_send_isoc_unit(struct oz_pd *pd, u8 ep_num, const u8 *data, int len) ...@@ -813,8 +812,7 @@ int oz_send_isoc_unit(struct oz_pd *pd, u8 ep_num, const u8 *data, int len)
atomic_inc(&g_submitted_isoc); atomic_inc(&g_submitted_isoc);
if (dev_queue_xmit(skb) < 0) if (dev_queue_xmit(skb) < 0)
return -1; return -1;
else return 0;
return 0;
} }
out: kfree_skb(skb); out: kfree_skb(skb);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册