]> git.ipfire.org Git - thirdparty/linux.git/commit
usb: storage: ene_ub6250: Fix right shift warnings
authorAbhishek Tamboli <abhishektamboli9@gmail.com>
Thu, 12 Sep 2024 14:52:47 +0000 (20:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Sep 2024 05:40:22 +0000 (07:40 +0200)
commit9027afa89bfe9e50e46714b72179761c67ebf4ad
treeaa663e143322cce1d50ead385573cf22b08d80ec
parent7d01ef789bdcdd02ac42b98ae5b7f98310a0e3d2
usb: storage: ene_ub6250: Fix right shift warnings

Change bl_len from u16 to u32 to accommodate the necessary bit shifts.

Fix the following smatch warnings:

drivers/usb/storage/ene_ub6250.c:1509 ms_scsi_read_capacity() warn:
right shifting more than type allows 16 vs 24
drivers/usb/storage/ene_ub6250.c:1510 ms_scsi_read_capacity() warn:
right shifting more than type allows 16 vs 16

Signed-off-by: Abhishek Tamboli <abhishektamboli9@gmail.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20240912145247.15544-1-abhishektamboli9@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/ene_ub6250.c