summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
47c649b)
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.
{
struct ifreq ifr;
struct ethtool_cmd ecmd;
{
struct ifreq ifr;
struct ethtool_cmd ecmd;
+ bool need_update = false;
int r;
if (speed == 0 && duplex == _DUP_INVALID)
int r;
if (speed == 0 && duplex == _DUP_INVALID)
int ethtool_set_wol(int fd, const char *ifname, WakeOnLan wol) {
struct ifreq ifr;
struct ethtool_wolinfo ecmd;
int ethtool_set_wol(int fd, const char *ifname, WakeOnLan wol) {
struct ifreq ifr;
struct ethtool_wolinfo ecmd;
+ bool need_update = false;
int r;
if (wol == _WOL_INVALID)
int r;
if (wol == _WOL_INVALID)