diff mbox

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

Message ID 1318865377-3328-5-git-send-email-lcapitulino@redhat.com
State New
Headers show

Commit Message

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

Comments

Michael Roth Oct. 17, 2011, 9:29 p.m. UTC | #1
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
>
diff mbox

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",