Patchwork [4/4] qapi-types.py: Drop unused variable

login
register
mail settings
Submitter Luiz Capitulino
Date Oct. 17, 2011, 3:29 p.m.
Message ID <1318865377-3328-5-git-send-email-lcapitulino@redhat.com>
Download mbox | patch
Permalink /patch/120239/
State New
Headers show

Comments

Luiz Capitulino - Oct. 17, 2011, 3:29 p.m.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 scripts/qapi-types.py |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)
Michael Roth - Oct. 17, 2011, 9:29 p.m.
Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>

On Mon, 17 Oct 2011 13:29:37 -0200, Luiz Capitulino <lcapitulino@redhat.com> wrote:
> Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
> ---
>  scripts/qapi-types.py |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
> index 4a2ddc4..28d7f01 100644
> --- a/scripts/qapi-types.py
> +++ b/scripts/qapi-types.py
> @@ -65,7 +65,6 @@ def generate_enum_lookup(name, values):
>  const char *%(name)s_lookup[] = {
>  ''',
>                           name=name)
> -    i = 0
>      for value in values:
>          ret += mcgen('''
>      "%(value)s",
> -- 
> 1.7.7.rc3
>

Patch

diff --git a/scripts/qapi-types.py b/scripts/qapi-types.py
index 4a2ddc4..28d7f01 100644
--- a/scripts/qapi-types.py
+++ b/scripts/qapi-types.py
@@ -65,7 +65,6 @@  def generate_enum_lookup(name, values):
 const char *%(name)s_lookup[] = {
 ''',
                          name=name)
-    i = 0
     for value in values:
         ret += mcgen('''
     "%(value)s",