Usb: storage: usb: removed useless cast of void*
Subsystems (2)
PATCH 1/1 Usb: storage: usb: removed useless cast of void*
Removed useless cast of a void* and changed __us to data
Signed-off-by Niklas Lantau <[email protected]>
--- drivers/usb/storage/usb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/usb/storage/usb.c +2 -2
@@ -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
Quoted 1 line · Niklas Lantau
Removed useless cast of a void* and changed
__usto 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