* [PATCH] scripts/gcc-plugins: remove unneeded variable: "ret"
@ 2021-02-22 13:32 zuoqilin1
0 siblings, 0 replies; only message in thread
From: zuoqilin1 @ 2021-02-22 13:32 UTC (permalink / raw)
To: keescook; +Cc: linux-hardening, linux-kernel, zuoqilin
From: zuoqilin <zuoqilin@yulong.com>
remove unneeded variable: "ret"
Signed-off-by: zuoqilin <zuoqilin@yulong.com>
---
scripts/gcc-plugins/structleak_plugin.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/gcc-plugins/structleak_plugin.c b/scripts/gcc-plugins/structleak_plugin.c
index 29b480c..d7190e4 100644
--- a/scripts/gcc-plugins/structleak_plugin.c
+++ b/scripts/gcc-plugins/structleak_plugin.c
@@ -170,7 +170,6 @@ static void initialize(tree var)
static unsigned int structleak_execute(void)
{
basic_block bb;
- unsigned int ret = 0;
tree var;
unsigned int i;
@@ -200,7 +199,7 @@ static unsigned int structleak_execute(void)
initialize(var);
}
- return ret;
+ return 0;
}
#define PASS_NAME structleak
--
1.9.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-02-22 14:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-22 13:32 [PATCH] scripts/gcc-plugins: remove unneeded variable: "ret" zuoqilin1
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.