diff mbox series

drivers/parport: Remove unused variable 'ret'

Message ID 20220519200012.59253-1-gautam.linuxkernel@gmail.com (mailing list archive)
State New
Headers show
Series drivers/parport: Remove unused variable 'ret' | expand

Commit Message

Gautam Menghani May 19, 2022, 8 p.m. UTC
Remove the unused variable 'ret' as suggested by clang scan
warning: Value stored to 'ret' is never read [deadcode.DeadStores]
                        ret = 0;


Signed-off-by: Gautam Menghani <gautam.linuxkernel@gmail.com>
---
 drivers/parport/parport_pc.c | 2 --
 1 file changed, 2 deletions(-)
diff mbox series

Patch

diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c
index eda4ded4d5e5..3d9fcbe758d7 100644
--- a/drivers/parport/parport_pc.c
+++ b/drivers/parport/parport_pc.c
@@ -507,7 +507,6 @@  static size_t parport_pc_fifo_write_block_pio(struct parport *port,
 			ret = parport_wait_event(port, HZ);
 			if (ret < 0)
 				break;
-			ret = 0;
 			if (!time_before(jiffies, expire)) {
 				/* Timed out. */
 				printk(KERN_DEBUG "FIFO write timed out\n");
@@ -636,7 +635,6 @@  static size_t parport_pc_fifo_write_block_dma(struct parport *port,
 		ret = parport_wait_event(port, HZ);
 		if (ret < 0)
 			break;
-		ret = 0;
 		if (!time_before(jiffies, expire)) {
 			/* Timed out. */
 			printk(KERN_DEBUG "DMA write timed out\n");