Message ID | 20240207112208.2443237-1-colin.i.king@gmail.com (mailing list archive) |
---|---|
State | Accepted |
Commit | ae28fd06b3a830aae34f1a3f3d7fbc2a5b59043a |
Headers | show |
Series | [next] usb: storage: freecom: Remove redundant assignment to variable offset | expand |
diff --git a/drivers/usb/storage/freecom.c b/drivers/usb/storage/freecom.c index 2b098b55c4cb..c3ce51c2dabd 100644 --- a/drivers/usb/storage/freecom.c +++ b/drivers/usb/storage/freecom.c @@ -534,7 +534,6 @@ static void pdump(struct us_data *us, void *ibuffer, int length) } line[offset] = 0; usb_stor_dbg(us, "%s\n", line); - offset = 0; } #endif
The variable offset is being assigned a value that is not being read afterwards, the assignment is redundant and can be removed. Cleans up clang scan warning: drivers/usb/storage/freecom.c:537:2: warning: Value stored to 'offset' is never read [deadcode.DeadStores] Signed-off-by: Colin Ian King <colin.i.king@gmail.com> --- drivers/usb/storage/freecom.c | 1 - 1 file changed, 1 deletion(-)