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: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Mon, 2 Aug 2021 17:25:30 +0800 (CST)
From:   <yang.yang29@....com.cn>
To:     <rth@...ddle.net>, <ink@...assic.park.msu.ru>, <mattst88@...il.com>
Cc:     <linux-alpha@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: [PATCH] alpha: remove unneeded variable

From: Zhang Yunkai <zhang.yunkai@....com.cn>

This is a warning in coccicheck. Unneeded variable "status".

Reported-by: Zeal Robot <zealci@....com.cn> 
Signed-off-by: Zhang Yunkai <zhang.yunkai@....com.cn>
---
 arch/alpha/kernel/err_titan.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/arch/alpha/kernel/err_titan.c b/arch/alpha/kernel/err_titan.c
index 0ffb2feea42a..85d91da86ec4 100644
--- a/arch/alpha/kernel/err_titan.c
+++ b/arch/alpha/kernel/err_titan.c
@@ -589,7 +589,6 @@ titan_register_error_handlers(void)
 static int
 privateer_process_680_frame(struct el_common *mchk_header, int print)
 {
-    int status = MCHK_DISPOSITION_UNKNOWN_ERROR;
 #ifdef CONFIG_VERBOSE_MCHECK
     struct el_PRIVATEER_envdata_mcheck *emchk =
         (struct el_PRIVATEER_envdata_mcheck *)
@@ -598,7 +597,7 @@ privateer_process_680_frame(struct el_common *mchk_header, int print)
     /* TODO - categorize errors, for now, no error */
 
     if (!print)
-        return status;
+        return MCHK_DISPOSITION_UNKNOWN_ERROR;
 
     /* TODO - decode instead of just dumping... */
     printk("%s  Summary Flags:         %016llx\n"
@@ -624,7 +623,7 @@ privateer_process_680_frame(struct el_common *mchk_header, int print)
            emchk->code);
 #endif /* CONFIG_VERBOSE_MCHECK */
 
-    return status;
+    return MCHK_DISPOSITION_UNKNOWN_ERROR;
 }
 
 int
-- 
2.25.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ