diff options
| author | David Sommerseth <davids@redhat.com> | 2013-12-17 21:59:17 +0100 |
|---|---|---|
| committer | David Sommerseth <davids@redhat.com> | 2013-12-17 21:59:17 +0100 |
| commit | e3036b284d41977f240592ebb4148e4283176682 (patch) | |
| tree | 10a6c2557a4a6d34fba041f3ad3ff0fe15a78899 /python-ethtool/etherinfo.c | |
| parent | 4c301d903dfc3d011e673a8772d4ac75e99bbd2a (diff) | |
| download | python-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.c | 4 |
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) ) { |
