gcc-plugins: Remove unneeded return variable
PATCH 1/1 gcc-plugins: Remove unneeded return variable
This patch removes unneeded return variables, using only
'0' instead.
It fixes the following warning detected by coccinelle:
./scripts/gcc-plugins/structleak_plugin.c:173:14-17: Unneeded variable:
"ret". Return "0" on line 203
Reported-by Abaci Robot <[email protected]>
Signed-off-by Yang Li <[email protected]>
--- scripts/gcc-plugins/structleak_plugin.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
scripts/gcc-plugins/structleak_plugin.c +1 -2
@@ -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
Signature · 1 line
1.8.3.1