lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20220519200012.59253-1-gautam.linuxkernel@gmail.com>
Date:   Thu, 19 May 2022 13:00:12 -0700
From:   Gautam Menghani <gautam.linuxkernel@...il.com>
To:     sudipm.mukherjee@...il.com, sumit.semwal@...aro.org,
        christian.koenig@....com
Cc:     Gautam Menghani <gautam.linuxkernel@...il.com>,
        linux-kernel@...r.kernel.org, linux-media@...r.kernel.org
Subject: [PATCH] drivers/parport: Remove unused variable 'ret'

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@...il.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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ