Signed-off-by: Michele Baldessari <michele(a)acksyn.org>
---
python-ethtool/ethtool.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/python-ethtool/ethtool.c b/python-ethtool/ethtool.c
index 7f8485ec9743..de0fbf9180ee 100644
--- a/python-ethtool/ethtool.c
+++ b/python-ethtool/ethtool.c
@@ -805,8 +805,8 @@ static PyObject *__struct_desc_create_dict(struct struct_desc *table,
out:
return dict;
free_dict:
- goto out;
dict = NULL;
+ goto out;
}
#define struct_desc_create_dict(table, values) \
--
1.9.0