2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-18 10:34:24 +08:00

usb: Remove unnecessary semicolons

These aren't necessary after switch and if blocks.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Joe Perches 2013-10-08 16:01:37 -07:00 committed by Greg Kroah-Hartman
parent 65b2fb32b5
commit 2b84f92b81
23 changed files with 32 additions and 32 deletions

View File

@ -438,7 +438,7 @@ static void set_port_led(
case HUB_LED_OFF: s = "off"; break; case HUB_LED_OFF: s = "off"; break;
case HUB_LED_AUTO: s = "auto"; break; case HUB_LED_AUTO: s = "auto"; break;
default: s = "??"; break; default: s = "??"; break;
}; s; }), } s; }),
status); status);
} }

View File

@ -352,7 +352,7 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc,
break; break;
default: default:
return -EINVAL; return -EINVAL;
}; }
response_pkt = (__le16 *) dwc->setup_buf; response_pkt = (__le16 *) dwc->setup_buf;
*response_pkt = cpu_to_le16(usb_status); *response_pkt = cpu_to_le16(usb_status);
@ -470,7 +470,7 @@ static int dwc3_ep0_handle_feature(struct dwc3 *dwc,
default: default:
return -EINVAL; return -EINVAL;
}; }
return 0; return 0;
} }
@ -709,7 +709,7 @@ static int dwc3_ep0_std_request(struct dwc3 *dwc, struct usb_ctrlrequest *ctrl)
dev_vdbg(dwc->dev, "Forwarding to gadget driver\n"); dev_vdbg(dwc->dev, "Forwarding to gadget driver\n");
ret = dwc3_ep0_delegate_req(dwc, ctrl); ret = dwc3_ep0_delegate_req(dwc, ctrl);
break; break;
}; }
return ret; return ret;
} }

View File

@ -354,7 +354,7 @@ static u8 encode_bMaxPower(enum usb_device_speed speed,
return DIV_ROUND_UP(val, 8); return DIV_ROUND_UP(val, 8);
default: default:
return DIV_ROUND_UP(val, 2); return DIV_ROUND_UP(val, 2);
}; }
} }
static int config_buf(struct usb_configuration *config, static int config_buf(struct usb_configuration *config,

View File

@ -544,7 +544,7 @@ static int dummy_enable(struct usb_ep *_ep,
default: default:
val = "ctrl"; val = "ctrl";
break; break;
}; val; }), } val; }),
max, ep->stream_en ? "enabled" : "disabled"); max, ep->stream_en ? "enabled" : "disabled");
/* at this point real hardware should be NAKing transfers /* at this point real hardware should be NAKing transfers
@ -2271,7 +2271,7 @@ static inline ssize_t show_urb(char *buf, size_t size, struct urb *urb)
default: default:
s = "?"; s = "?";
break; break;
}; s; }), } s; }),
ep, ep ? (usb_pipein(urb->pipe) ? "in" : "out") : "", ep, ep ? (usb_pipein(urb->pipe) ? "in" : "out") : "",
({ char *s; \ ({ char *s; \
switch (usb_pipetype(urb->pipe)) { \ switch (usb_pipetype(urb->pipe)) { \
@ -2287,7 +2287,7 @@ static inline ssize_t show_urb(char *buf, size_t size, struct urb *urb)
default: \ default: \
s = "-iso"; \ s = "-iso"; \
break; \ break; \
}; s; }), } s; }),
urb->actual_length, urb->transfer_buffer_length); urb->actual_length, urb->transfer_buffer_length);
} }

View File

@ -1165,7 +1165,7 @@ static int udc_proc_read(struct seq_file *m, void *v)
s = "invalid"; break; s = "invalid"; break;
default: default:
s = "?"; break; s = "?"; break;
}; s; }), } s; }),
(tmp & EPxSTATUS_TOGGLE) ? "data1" : "data0", (tmp & EPxSTATUS_TOGGLE) ? "data1" : "data0",
(tmp & EPxSTATUS_SUSPEND) ? " suspend" : "", (tmp & EPxSTATUS_SUSPEND) ? " suspend" : "",
(tmp & EPxSTATUS_FIFO_DISABLE) ? " disable" : "", (tmp & EPxSTATUS_FIFO_DISABLE) ? " disable" : "",

View File

@ -129,7 +129,7 @@ static char *type_string (u8 bmAttributes)
case USB_ENDPOINT_XFER_BULK: return "bulk"; case USB_ENDPOINT_XFER_BULK: return "bulk";
case USB_ENDPOINT_XFER_ISOC: return "iso"; case USB_ENDPOINT_XFER_ISOC: return "iso";
case USB_ENDPOINT_XFER_INT: return "intr"; case USB_ENDPOINT_XFER_INT: return "intr";
}; }
return "control"; return "control";
} }
#endif #endif
@ -1630,7 +1630,7 @@ static ssize_t queues_show(struct device *_dev, struct device_attribute *attr,
val = "intr"; break; val = "intr"; break;
default: default:
val = "iso"; break; val = "iso"; break;
}; val; }), } val; }),
usb_endpoint_maxp (d) & 0x1fff, usb_endpoint_maxp (d) & 0x1fff,
ep->dma ? "dma" : "pio", ep->fifo_size ep->dma ? "dma" : "pio", ep->fifo_size
); );

View File

@ -1068,7 +1068,7 @@ static int rndis_proc_show(struct seq_file *m, void *v)
s = "RNDIS_INITIALIZED"; break; s = "RNDIS_INITIALIZED"; break;
case RNDIS_DATA_INITIALIZED: case RNDIS_DATA_INITIALIZED:
s = "RNDIS_DATA_INITIALIZED"; break; s = "RNDIS_DATA_INITIALIZED"; break;
}; s; }), } s; }),
param->medium, param->medium,
(param->media_state) ? 0 : param->speed*100, (param->media_state) ? 0 : param->speed*100,
(param->media_state) ? "disconnected" : "connected", (param->media_state) ? "disconnected" : "connected",

View File

@ -472,7 +472,7 @@ static int usbg_bot_setup(struct usb_function *f,
bot_enqueue_cmd_cbw(fu); bot_enqueue_cmd_cbw(fu);
return 0; return 0;
break; break;
}; }
return -ENOTSUPP; return -ENOTSUPP;
} }
@ -617,7 +617,7 @@ static void uasp_status_data_cmpl(struct usb_ep *ep, struct usb_request *req)
default: default:
BUG(); BUG();
}; }
return; return;
cleanup: cleanup:

View File

@ -379,7 +379,7 @@ struct debug_buffer {
case QH_LOW_SPEED: tmp = 'l'; break; \ case QH_LOW_SPEED: tmp = 'l'; break; \
case QH_HIGH_SPEED: tmp = 'h'; break; \ case QH_HIGH_SPEED: tmp = 'h'; break; \
default: tmp = '?'; break; \ default: tmp = '?'; break; \
}; tmp; }) } tmp; })
static inline char token_mark(struct ehci_hcd *ehci, __hc32 token) static inline char token_mark(struct ehci_hcd *ehci, __hc32 token)
{ {

View File

@ -412,7 +412,7 @@ struct debug_buffer {
tmp = 'h'; break; \ tmp = 'h'; break; \
default: \ default: \
tmp = '?'; break; \ tmp = '?'; break; \
}; tmp; }) } tmp; })
static inline char token_mark(struct fotg210_hcd *fotg210, __hc32 token) static inline char token_mark(struct fotg210_hcd *fotg210, __hc32 token)
{ {

View File

@ -402,7 +402,7 @@ struct debug_buffer {
case QH_LOW_SPEED: tmp = 'l'; break; \ case QH_LOW_SPEED: tmp = 'l'; break; \
case QH_HIGH_SPEED: tmp = 'h'; break; \ case QH_HIGH_SPEED: tmp = 'h'; break; \
default: tmp = '?'; break; \ default: tmp = '?'; break; \
}; tmp; }) } tmp; })
static inline char token_mark(struct fusbh200_hcd *fusbh200, __hc32 token) static inline char token_mark(struct fusbh200_hcd *fusbh200, __hc32 token)
{ {

View File

@ -2108,7 +2108,7 @@ static int isp1362_show(struct seq_file *s, void *unused)
default: default:
s = "?"; s = "?";
break; break;
}; }
s;}), ep->maxpacket) ; s;}), ep->maxpacket) ;
list_for_each_entry(urb, &ep->hep->urb_list, urb_list) { list_for_each_entry(urb, &ep->hep->urb_list, urb_list) {
seq_printf(s, " urb%p, %d/%d\n", urb, seq_printf(s, " urb%p, %d/%d\n", urb,

View File

@ -17,7 +17,7 @@
case PIPE_BULK: temp = "bulk"; break; \ case PIPE_BULK: temp = "bulk"; break; \
case PIPE_INTERRUPT: temp = "intr"; break; \ case PIPE_INTERRUPT: temp = "intr"; break; \
default: temp = "isoc"; break; \ default: temp = "isoc"; break; \
}; temp;}) } temp;})
#define pipestring(pipe) edstring(usb_pipetype(pipe)) #define pipestring(pipe) edstring(usb_pipetype(pipe))
/* debug| print the main components of an URB /* debug| print the main components of an URB

View File

@ -1413,7 +1413,7 @@ static int sl811h_show(struct seq_file *s, void *unused)
case SL11H_CTL1MASK_SE0: s = " se0/reset"; break; case SL11H_CTL1MASK_SE0: s = " se0/reset"; break;
case SL11H_CTL1MASK_K: s = " k/resume"; break; case SL11H_CTL1MASK_K: s = " k/resume"; break;
default: s = "j"; break; default: s = "j"; break;
}; s; }), } s; }),
(t & SL11H_CTL1MASK_LSPD) ? " lowspeed" : "", (t & SL11H_CTL1MASK_LSPD) ? " lowspeed" : "",
(t & SL11H_CTL1MASK_SUSPEND) ? " suspend" : ""); (t & SL11H_CTL1MASK_SUSPEND) ? " suspend" : "");
@ -1446,7 +1446,7 @@ static int sl811h_show(struct seq_file *s, void *unused)
case USB_PID_SETUP: s = "setup"; break; case USB_PID_SETUP: s = "setup"; break;
case USB_PID_ACK: s = "status"; break; case USB_PID_ACK: s = "status"; break;
default: s = "?"; break; default: s = "?"; break;
}; s;}), } s;}),
ep->maxpacket, ep->maxpacket,
ep->nak_count, ep->error_count); ep->nak_count, ep->error_count);
list_for_each_entry (urb, &ep->hep->urb_list, urb_list) { list_for_each_entry (urb, &ep->hep->urb_list, urb_list) {

View File

@ -178,7 +178,7 @@ static int uhci_pci_suspend(struct usb_hcd *hcd, bool do_wakeup)
dev_warn(uhci_dev(uhci), "Root hub isn't suspended!\n"); dev_warn(uhci_dev(uhci), "Root hub isn't suspended!\n");
rc = -EBUSY; rc = -EBUSY;
goto done; goto done;
}; }
/* All PCI host controllers are required to disable IRQ generation /* All PCI host controllers are required to disable IRQ generation
* at the source, so we must turn off PIRQ. * at the source, so we must turn off PIRQ.

View File

@ -134,7 +134,7 @@ static int whc_urb_enqueue(struct usb_hcd *usb_hcd, struct urb *urb,
default: default:
ret = asl_urb_enqueue(whc, urb, mem_flags); ret = asl_urb_enqueue(whc, urb, mem_flags);
break; break;
}; }
return ret; return ret;
} }
@ -160,7 +160,7 @@ static int whc_urb_dequeue(struct usb_hcd *usb_hcd, struct urb *urb, int status)
default: default:
ret = asl_urb_dequeue(whc, urb, status); ret = asl_urb_dequeue(whc, urb, status);
break; break;
}; }
return ret; return ret;
} }

View File

@ -617,7 +617,7 @@ static irqreturn_t musb_stage0_irq(struct musb *musb, u8 int_usb,
/* case 3 << MUSB_DEVCTL_VBUS_SHIFT: */ /* case 3 << MUSB_DEVCTL_VBUS_SHIFT: */
default: default:
s = "VALID"; break; s = "VALID"; break;
}; s; }), } s; }),
VBUSERR_RETRY_COUNT - musb->vbuserr_retry, VBUSERR_RETRY_COUNT - musb->vbuserr_retry,
musb->port1_status); musb->port1_status);

View File

@ -443,7 +443,7 @@ static int get_musb_port_mode(struct device *dev)
case USB_DR_MODE_OTG: case USB_DR_MODE_OTG:
default: default:
return MUSB_PORT_MODE_DUAL_ROLE; return MUSB_PORT_MODE_DUAL_ROLE;
}; }
} }
static int dsps_create_musb_pdev(struct dsps_glue *glue, static int dsps_create_musb_pdev(struct dsps_glue *glue,

View File

@ -1121,7 +1121,7 @@ static int musb_gadget_enable(struct usb_ep *ep,
case USB_ENDPOINT_XFER_BULK: s = "bulk"; break; case USB_ENDPOINT_XFER_BULK: s = "bulk"; break;
case USB_ENDPOINT_XFER_INT: s = "int"; break; case USB_ENDPOINT_XFER_INT: s = "int"; break;
default: s = "iso"; break; default: s = "iso"; break;
}; s; }), } s; }),
musb_ep->is_in ? "IN" : "OUT", musb_ep->is_in ? "IN" : "OUT",
musb_ep->dma ? "dma, " : "", musb_ep->dma ? "dma, " : "",
musb_ep->packet_sz); musb_ep->packet_sz);

View File

@ -253,7 +253,7 @@ musb_start_urb(struct musb *musb, int is_in, struct musb_qh *qh)
case USB_ENDPOINT_XFER_BULK: s = "-bulk"; break; case USB_ENDPOINT_XFER_BULK: s = "-bulk"; break;
case USB_ENDPOINT_XFER_ISOC: s = "-iso"; break; case USB_ENDPOINT_XFER_ISOC: s = "-iso"; break;
default: s = "-intr"; break; default: s = "-intr"; break;
}; s; }), } s; }),
epnum, buf + offset, len); epnum, buf + offset, len);
/* Configure endpoint */ /* Configure endpoint */

View File

@ -36,7 +36,7 @@ static int ulpi_viewport_wait(void __iomem *view, u32 mask)
return 0; return 0;
udelay(1); udelay(1);
}; }
return -ETIMEDOUT; return -ETIMEDOUT;
} }

View File

@ -208,9 +208,9 @@ static int cbaf_check(struct cbaf *cbaf)
ar_name = "ASSOCIATE"; ar_name = "ASSOCIATE";
ar_assoc = 1; ar_assoc = 1;
break; break;
}; }
break; break;
}; }
dev_dbg(dev, "Association request #%02u: 0x%04x/%04x " dev_dbg(dev, "Association request #%02u: 0x%04x/%04x "
"(%zu bytes): %s\n", "(%zu bytes): %s\n",

View File

@ -973,7 +973,7 @@ int wusb_usb_ncb(struct notifier_block *nb, unsigned long val,
default: default:
WARN_ON(1); WARN_ON(1);
result = NOTIFY_BAD; result = NOTIFY_BAD;
}; }
return result; return result;
} }