Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2b84f92b authored by Joe Perches's avatar Joe Perches Committed by Greg Kroah-Hartman
Browse files

usb: Remove unnecessary semicolons



These aren't necessary after switch and if blocks.

Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 65b2fb32
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -438,7 +438,7 @@ static void set_port_led(
			case HUB_LED_OFF: s = "off"; break;
			case HUB_LED_AUTO: s = "auto"; break;
			default: s = "??"; break;
			}; s; }),
			} s; }),
			status);
}

+3 −3
Original line number Diff line number Diff line
@@ -352,7 +352,7 @@ static int dwc3_ep0_handle_status(struct dwc3 *dwc,
		break;
	default:
		return -EINVAL;
	};
	}

	response_pkt = (__le16 *) dwc->setup_buf;
	*response_pkt = cpu_to_le16(usb_status);
@@ -470,7 +470,7 @@ static int dwc3_ep0_handle_feature(struct dwc3 *dwc,

	default:
		return -EINVAL;
	};
	}

	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");
		ret = dwc3_ep0_delegate_req(dwc, ctrl);
		break;
	};
	}

	return ret;
}
+1 −1
Original line number Diff line number Diff line
@@ -354,7 +354,7 @@ static u8 encode_bMaxPower(enum usb_device_speed speed,
		return DIV_ROUND_UP(val, 8);
	default:
		return DIV_ROUND_UP(val, 2);
	};
	}
}

static int config_buf(struct usb_configuration *config,
+3 −3
Original line number Diff line number Diff line
@@ -544,7 +544,7 @@ static int dummy_enable(struct usb_ep *_ep,
		 default:
			 val = "ctrl";
			 break;
		 }; val; }),
		 } val; }),
		max, ep->stream_en ? "enabled" : "disabled");

	/* 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:
			s = "?";
			break;
		 }; s; }),
		 } s; }),
		ep, ep ? (usb_pipein(urb->pipe) ? "in" : "out") : "",
		({ char *s; \
		switch (usb_pipetype(urb->pipe)) { \
@@ -2287,7 +2287,7 @@ static inline ssize_t show_urb(char *buf, size_t size, struct urb *urb)
		default: \
			s = "-iso"; \
			break; \
		}; s; }),
		} s; }),
		urb->actual_length, urb->transfer_buffer_length);
}

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