Просмотр исходного кода

Qdevice: Remove unused variable

Signed-off-by: Jan Friesse <jfriesse@redhat.com>
Jan Friesse 9 лет назад
Родитель
Сommit
86776318a3
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      qdevices/dynar-getopt-lex.c

+ 0 - 2
qdevices/dynar-getopt-lex.c

@@ -67,7 +67,6 @@ dynar_getopt_lex_token_next(struct dynar_getopt_lex *lex)
 	char *str;
 	char *str;
 	char ch;
 	char ch;
 	int state;
 	int state;
-	int res;
 
 
 	dynar_clean(&lex->option);
 	dynar_clean(&lex->option);
 	dynar_clean(&lex->value);
 	dynar_clean(&lex->value);
@@ -77,7 +76,6 @@ dynar_getopt_lex_token_next(struct dynar_getopt_lex *lex)
 
 
 	state = 1;
 	state = 1;
 	pos = lex->pos;
 	pos = lex->pos;
-	res = 0;
 
 
 	while (state != 0 && pos < size) {
 	while (state != 0 && pos < size) {
 		ch = str[pos];
 		ch = str[pos];