lkml.org 
[lkml]   [2021]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] scripts/gcc-plugins: remove unneeded variable: "ret"
Date
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

\
 
 \ /
  Last update: 2021-02-22 15:19    [W:0.018 / U:30.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site