[PATCH] drivers/parport: Remove unused variable 'ret'

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 drivers/parport/parport_pc.c | 2 --
 1 file changed, 2 deletions(-)

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");
-- 
2.25.1




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux