memstick: r592: remove unused variable
Subsystems (3)
PATCH 1/1 memstick: r592: remove unused variable
Fix the following clang warning:
drivers/memstick/host/r592.c:363:6: warning: variable ‘len’ set but not used [-Wunused-but-set-variable].
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/memstick/host/r592.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/memstick/host/r592.c +1 -2
@@ -360,12 +360,11 @@ static void r592_write_fifo_pio(struct r592_device *dev,static void r592_flush_fifo_write (struct r592_device *dev) {u8 buffer[4 ] = {0 }; -int len;if (kfifo_is_empty (&dev->pio_fifo))return ; - len =kfifo_out (&dev->pio_fifo, buffer,4 ); +kfifo_out (&dev->pio_fifo, buffer,4 );r592_write_reg_raw_be (dev,R592_FIFO_PIO , *(u32 *)buffer); }
Signature · 1 line
1.8.3.1
Quoted 8 lines · Jiapeng Chong
Fix the following clang warning:
drivers/memstick/host/r592.c:363:6: warning: variable ‘len’ set but not used [-Wunused-but-set-variable].Reported-by Abaci Robot <[email protected]>Signed-off-by Jiapeng Chong <[email protected]>
Applied for next, thanks!
Kind regards
Uffe
Quoted 25 lines
--- drivers/memstick/host/r592.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/memstick/host/r592.c +1
-3@@ -360,12 +360,11 @@ static void r592_write_fifo_pio(struct r592_device *dev,static void r592_flush_fifo_write (struct r592_device *dev) {u8 buffer[4 ] = {0 }; -int len;if (kfifo_is_empty (&dev->pio_fifo))return ; - len =kfifo_out (&dev->pio_fifo, buffer,4 ); +kfifo_out (&dev->pio_fifo, buffer,4 );r592_write_reg_raw_be (dev,R592_FIFO_PIO , *(u32 *)buffer); } --1.8.3.1