diff options
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) ) { |