From e3036b284d41977f240592ebb4148e4283176682 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Tue, 17 Dec 2013 21:59:17 +0100 Subject: Kick out struct etherinfo_obj_data This simplifies and clarifies the object/struct relations a bit better. Signed-off-by: David Sommerseth --- python-ethtool/etherinfo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python-ethtool/etherinfo.c') 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) ) { -- cgit