From: Gautam Menghani <gautam.linuxkernel@gmail.com>
To: sudipm.mukherjee@gmail.com, sumit.semwal@linaro.org,
christian.koenig@amd.com
Cc: Gautam Menghani <gautam.linuxkernel@gmail.com>,
linux-kernel@vger.kernel.org, linux-media@vger.kernel.org
Subject: [PATCH] drivers/parport: Remove unused variable 'ret'
Date: Thu, 19 May 2022 13:00:12 -0700 [thread overview]
Message-ID: <20220519200012.59253-1-gautam.linuxkernel@gmail.com> (raw)
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
reply other threads:[~2022-05-19 20:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220519200012.59253-1-gautam.linuxkernel@gmail.com \
--to=gautam.linuxkernel@gmail.com \
--cc=christian.koenig@amd.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=sudipm.mukherjee@gmail.com \
--cc=sumit.semwal@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox