* [PATCH] drivers/parport: Remove unused variable 'ret'
@ 2022-05-19 20:00 Gautam Menghani
0 siblings, 0 replies; only message in thread
From: Gautam Menghani @ 2022-05-19 20:00 UTC (permalink / raw)
To: sudipm.mukherjee, sumit.semwal, christian.koenig
Cc: Gautam Menghani, linux-kernel, linux-media
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 --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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2022-05-19 20:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-19 20:00 [PATCH] drivers/parport: Remove unused variable 'ret' Gautam Menghani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).