summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2019-08-22 07:51:06 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2019-08-30 09:26:06 +0200
commit985194f2f928b9af2bdf1f9addfbf78e8b5675f0 (patch)
tree67baeff86f92eff8e384ec93cf89e73b5a32b18e /common
parentb1d88eadaa7772f8f01a402dcdd7f70e8c36c166 (diff)
downloadbarebox-985194f2f928b9af2bdf1f9addfbf78e8b5675f0.tar.gz
barebox-985194f2f928b9af2bdf1f9addfbf78e8b5675f0.tar.xz
complete: remove unused variable
instr_param serves no purpose in the function. Thus remove it. Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common')
-rw-r--r--common/complete.c2
1 files changed, 0 insertions, 2 deletions
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);