summaryrefslogtreecommitdiff
path: root/src/udev/net
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-01-05 13:33:22 +0100
committerLennart Poettering <lennart@poettering.net>2018-01-11 15:12:16 +0100
commit20d4e99524cece9778e707741ae4f44e13f68b80 (patch)
treeffdd7e91ef8412baafebc474a7e768908db09638 /src/udev/net
parentab1263d774da5aedd1e2976ae9e1154ab1b0d578 (diff)
downloadsystemd-20d4e99524cece9778e707741ae4f44e13f68b80.tar.gz
ethtool-util: fix weird whitespace
Diffstat (limited to 'src/udev/net')
-rw-r--r--src/udev/net/ethtool-util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/udev/net/ethtool-util.c b/src/udev/net/ethtool-util.c
index ffa1713f58..4fbfc0bc2d 100644
--- a/src/udev/net/ethtool-util.c
+++ b/src/udev/net/ethtool-util.c
@@ -557,7 +557,6 @@ int ethtool_set_glinksettings(int *fd, const char *ifname, struct link_config *l
r = get_glinksettings(fd, &ifr, &u);
if (r < 0) {
-
r = get_gset(fd, &ifr, &u);
if (r < 0)
return log_warning_errno(r, "link_config: Cannot get device settings for %s : %m", ifname);
@@ -570,7 +569,7 @@ int ethtool_set_glinksettings(int *fd, const char *ifname, struct link_config *l
u->base.duplex = link->duplex;
if (link->port != _NET_DEV_PORT_INVALID)
- u->base.port = link->port;
+ u->base.port = link->port;
u->base.autoneg = link->autonegotiation;
@@ -578,7 +577,6 @@ int ethtool_set_glinksettings(int *fd, const char *ifname, struct link_config *l
r = set_slinksettings(fd, &ifr, u);
else
r = set_sset(fd, &ifr, u);
-
if (r < 0)
return log_warning_errno(r, "link_config: Cannot set device settings for %s : %m", ifname);