chiark / gitweb /
net-util: call ioctl() only if necessary
authorMichal Sekletar <msekleta@redhat.com>
Wed, 6 Nov 2013 10:18:01 +0000 (11:18 +0100)
committerLennart Poettering <lennart@poettering.net>
Thu, 7 Nov 2013 21:25:42 +0000 (22:25 +0100)
commit0a2c2294265d1d4552af3e7a92df0d4560deb818
treeb596a78b06f54bc96591a246826a040eedae0b8a
parent47c649b5de480b832bb11e0d52ba58d962d61fb2
net-util: call ioctl() only if necessary

In case when update of current values is not necessary we still might end up
calling ioctl(), because need_update variable is not explicitly initialized.
src/udev/net/ethtool-util.c