linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] USB / image: Fix spacing issues in mdc800_endpoint_equals()
@ 2022-05-19  9:12 Kushagra Verma
  2022-05-19 10:34 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Kushagra Verma @ 2022-05-19  9:12 UTC (permalink / raw)
  To: gregkh, linux-usb, linux-kernel

This patch fixes the following spacing issues in mdc800_endpoint_equals():
	1. (Removed) Space between function name and opening parenthesis.
	2. (Removed) Space between variable and opening and closing
            parenthesis in the return statement.
	3. (Added) Space between 2 function arguments.

This fixes multiple checkpatch warnings for this function.

Signed-off-by: Kushagra Verma <kushagra765@outlook.com>
---
 drivers/usb/image/mdc800.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/image/mdc800.c b/drivers/usb/image/mdc800.c
index fc0e22cc6fda..dc03e0e54fe0 100644
--- a/drivers/usb/image/mdc800.c
+++ b/drivers/usb/image/mdc800.c
@@ -220,12 +220,12 @@ static struct mdc800_data* mdc800;
 	The USB Part of the driver
 ****************************************************************************/
 
-static int mdc800_endpoint_equals (struct usb_endpoint_descriptor *a,struct usb_endpoint_descriptor *b)
+static int mdc800_endpoint_equals(struct usb_endpoint_descriptor *a, struct usb_endpoint_descriptor *b)
 {
 	return (
-		   ( a->bEndpointAddress == b->bEndpointAddress )
-		&& ( a->bmAttributes     == b->bmAttributes     )
-		&& ( a->wMaxPacketSize   == b->wMaxPacketSize   )
+		   (a->bEndpointAddress == b->bEndpointAddress)
+		&& (a->bmAttributes     == b->bmAttributes)
+		&& (a->wMaxPacketSize   == b->wMaxPacketSize)
 	);
 }
 
-- 
2.36.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-19 10:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19  9:12 [PATCH] USB / image: Fix spacing issues in mdc800_endpoint_equals() Kushagra Verma
2022-05-19 10:34 ` Greg KH

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).