summaryrefslogtreecommitdiffstats
path: root/loader/net.c
diff options
context:
space:
mode:
authorRadek Vykydal <rvykydal@redhat.com>2011-06-09 12:01:37 +0200
committerRadek Vykydal <rvykydal@redhat.com>2011-06-09 14:24:24 +0200
commitc3301d8cde7bd86d39ca100ea90984129d351d13 (patch)
tree0814b54bff1ff63587dd14a2fe2207784a77ba74 /loader/net.c
parent7e8b05daa6a34ad537947cb4553da8d3578c22f4 (diff)
downloadanaconda-c3301d8cde7bd86d39ca100ea90984129d351d13.tar.gz
anaconda-c3301d8cde7bd86d39ca100ea90984129d351d13.tar.xz
anaconda-c3301d8cde7bd86d39ca100ea90984129d351d13.zip
Remove duplicate code.
The else branches are doing exactly the same as the if branches.
Diffstat (limited to 'loader/net.c')
-rw-r--r--loader/net.c18
1 files changed, 0 insertions, 18 deletions
diff --git a/loader/net.c b/loader/net.c
index ebb8e3cd6..a152bdeff 100644
--- a/loader/net.c
+++ b/loader/net.c
@@ -819,12 +819,6 @@ int manualNetConfig(char * device, iface_t * iface,
logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
strerror(errno));
}
- } else if (iface_have_in_addr(&iface->ipaddr)) {
- if (inet_ntop(AF_INET, &iface->ipaddr, ret,
- INET_ADDRSTRLEN) == NULL) {
- logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
- strerror(errno));
- }
}
if (*ret) {
@@ -837,12 +831,6 @@ int manualNetConfig(char * device, iface_t * iface,
logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
strerror(errno));
}
- } else if (iface_have_in_addr(&iface->netmask)) {
- if (inet_ntop(AF_INET, &iface->netmask, ret,
- INET_ADDRSTRLEN) == NULL) {
- logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
- strerror(errno));
- }
}
if (*ret) {
@@ -886,12 +874,6 @@ int manualNetConfig(char * device, iface_t * iface,
logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
strerror(errno));
}
- } else if (iface_have_in6_addr(&iface->ip6addr)) {
- if (inet_ntop(AF_INET6, &iface->ip6addr, ret,
- INET6_ADDRSTRLEN) == NULL) {
- logMessage(ERROR, "%s (%d): %s", __func__, __LINE__,
- strerror(errno));
- }
}
if (*ret) {