diff options
author | Colin Ian King <colin.i.king@gmail.com> | 2024-02-07 14:22:08 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-02-17 19:01:10 +0300 |
commit | ae28fd06b3a830aae34f1a3f3d7fbc2a5b59043a (patch) | |
tree | 86e118cf1dc217db84926d8cf026bd3f09edcc2a | |
parent | 136a73da8e3d771567a0a78e0af867d3f9cf63eb (diff) | |
download | linux-ae28fd06b3a830aae34f1a3f3d7fbc2a5b59043a.tar.xz |
usb: storage: freecom: Remove redundant assignment to variable offset
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>
Link: https://lore.kernel.org/r/20240207112208.2443237-1-colin.i.king@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/storage/freecom.c | 1 |
1 files changed, 0 insertions, 1 deletions
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 |