Skip to contentSkip to conversation

Usb: storage: usb: removed useless cast of void*

PATCH In review Niklas Lantau 2 participants 2 messages Aug 21, 2021 – Aug 26, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Usb: storage: usb: removed useless cast of void*

Removed useless cast of a void* and changed __us to data

---
 drivers/usb/storage/usb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/storage/usb.c +2 -2
index 90aa9c12ffac..e78e20fb1afa 100644
@@ -295,9 +295,9 @@ void fill_inquiry_response(struct us_data *us, unsigned char *data,
 }
 EXPORT_SYMBOL_GPL(fill_inquiry_response);
 
-static int usb_stor_control_thread(void * __us)
+static int usb_stor_control_thread(void *data)
 {
-	struct us_data *us = (struct us_data *)__us;
+	struct us_data *us = data;
 	struct Scsi_Host *host = us_to_host(us);
 	struct scsi_cmnd *srb;
 
Signature · 1 line
2.33.0
#1 lore raw
Quoted 1 line · Niklas Lantau

Removed useless cast of a void* and changed __us to data

Why did you do two different things in the same patch?

If you want to work on coding style cleanups, I recommend starting in the drivers/staging/ area to gain experience before venturing out into the rest of the kernel.

thanks,

greg k-h