diff mbox series

usbip: stub_rx: tidy the indenting in is_clear_halt_cmd()

Message ID 20190424095414.GB16664@mwanda (mailing list archive)
State Mainlined
Commit 409fba220075379db118b8d52979c574623c0214
Headers show
Series usbip: stub_rx: tidy the indenting in is_clear_halt_cmd() | expand

Commit Message

Dan Carpenter April 24, 2019, 9:54 a.m. UTC
There is an extra space character before the return statement.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

Comments

Shuah April 25, 2019, 11:09 p.m. UTC | #1
On 4/24/19 3:54 AM, Dan Carpenter wrote:
> There is an extra space character before the return statement.
> 
> Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
> 
> diff --git a/drivers/usb/usbip/stub_rx.c b/drivers/usb/usbip/stub_rx.c
> index 97b09a42a10c..f3230bed18af 100644
> --- a/drivers/usb/usbip/stub_rx.c
> +++ b/drivers/usb/usbip/stub_rx.c
> @@ -17,9 +17,9 @@ static int is_clear_halt_cmd(struct urb *urb)
>   
>   	req = (struct usb_ctrlrequest *) urb->setup_packet;
>   
> -	 return (req->bRequest == USB_REQ_CLEAR_FEATURE) &&
> -		 (req->bRequestType == USB_RECIP_ENDPOINT) &&
> -		 (req->wValue == USB_ENDPOINT_HALT);
> +	return (req->bRequest == USB_REQ_CLEAR_FEATURE) &&
> +	       (req->bRequestType == USB_RECIP_ENDPOINT) &&
> +	       (req->wValue == USB_ENDPOINT_HALT);
>   }
>   
>   static int is_set_interface_cmd(struct urb *urb)
> 

Thanks for the patch.

Acked-by: Shuah Khan <skhan@linuxfoundation.org>

thanks,
-- Shuah
diff mbox series

Patch

diff --git a/drivers/usb/usbip/stub_rx.c b/drivers/usb/usbip/stub_rx.c
index 97b09a42a10c..f3230bed18af 100644
--- a/drivers/usb/usbip/stub_rx.c
+++ b/drivers/usb/usbip/stub_rx.c
@@ -17,9 +17,9 @@  static int is_clear_halt_cmd(struct urb *urb)
 
 	req = (struct usb_ctrlrequest *) urb->setup_packet;
 
-	 return (req->bRequest == USB_REQ_CLEAR_FEATURE) &&
-		 (req->bRequestType == USB_RECIP_ENDPOINT) &&
-		 (req->wValue == USB_ENDPOINT_HALT);
+	return (req->bRequest == USB_REQ_CLEAR_FEATURE) &&
+	       (req->bRequestType == USB_RECIP_ENDPOINT) &&
+	       (req->wValue == USB_ENDPOINT_HALT);
 }
 
 static int is_set_interface_cmd(struct urb *urb)