summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo.c
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2013-12-17 21:59:17 +0100
committerDavid Sommerseth <davids@redhat.com>2013-12-17 21:59:17 +0100
commite3036b284d41977f240592ebb4148e4283176682 (patch)
tree10a6c2557a4a6d34fba041f3ad3ff0fe15a78899 /python-ethtool/etherinfo.c
parent4c301d903dfc3d011e673a8772d4ac75e99bbd2a (diff)
downloadpython-ethtool-e3036b284d41977f240592ebb4148e4283176682.tar.gz
python-ethtool-e3036b284d41977f240592ebb4148e4283176682.tar.xz
python-ethtool-e3036b284d41977f240592ebb4148e4283176682.zip
Kick out struct etherinfo_obj_data
This simplifies and clarifies the object/struct relations a bit better. Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'python-ethtool/etherinfo.c')
-rw-r--r--python-ethtool/etherinfo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/python-ethtool/etherinfo.c b/python-ethtool/etherinfo.c
index 509ae08..438fc27 100644
--- a/python-ethtool/etherinfo.c
+++ b/python-ethtool/etherinfo.c
@@ -153,10 +153,10 @@ int get_etherinfo(etherinfo_py *self, nlQuery query)
int ret = 0;
- if( !self || !self->data || !self->data->ethinfo ) {
+ if( !self || !self->ethinfo ) {
return 0;
}
- ethinf = self->data->ethinfo;
+ ethinf = self->ethinfo;
/* Open a NETLINK connection on-the-fly */
if( !open_netlink(self) ) {