From 985194f2f928b9af2bdf1f9addfbf78e8b5675f0 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Thu, 22 Aug 2019 07:51:06 +0200 Subject: complete: remove unused variable instr_param serves no purpose in the function. Thus remove it. Signed-off-by: Ahmad Fatoum Signed-off-by: Sascha Hauer --- common/complete.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'common/complete.c') diff --git a/common/complete.c b/common/complete.c index 2dab7d1dde..919e5abc6a 100644 --- a/common/complete.c +++ b/common/complete.c @@ -277,7 +277,6 @@ static int env_param_complete(struct string_list *sl, char *instr, int eval) struct device_d *dev; struct variable_d *var; struct env_context *c; - char *instr_param; int len; char end = '=', *pos, *dot; char *begin = ""; @@ -317,7 +316,6 @@ static int env_param_complete(struct string_list *sl, char *instr, int eval) devname = xstrndup(instr, dot - instr); - instr_param++; dev = get_device_by_name(devname); free(devname); -- cgit v1.2.3