summaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_fw.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_fw.c')
-rw-r--r--net/ipv4/ip_fw.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/net/ipv4/ip_fw.c b/net/ipv4/ip_fw.c
index 4eb41c325..b364f66de 100644
--- a/net/ipv4/ip_fw.c
+++ b/net/ipv4/ip_fw.c
@@ -683,11 +683,6 @@ static int insert_in_chain(struct ip_fw *volatile* chainptr, struct ip_fw *frwl,
if ((ftmp->fw_vianame)[0]) {
if (!(ftmp->fw_viadev = dev_get(ftmp->fw_vianame)))
ftmp->fw_viadev = (struct device *) -1;
- } else if (ftmp->fw_via.s_addr) {
- if (!(ftmp->fw_viadev = ip_dev_find(ftmp->fw_via.s_addr)))
- ftmp->fw_viadev = (struct device *) -1;
- else
- memcpy(ftmp->fw_vianame, ftmp->fw_viadev->name, IFNAMSIZ);
} else
ftmp->fw_viadev = NULL;
@@ -732,11 +727,6 @@ static int append_to_chain(struct ip_fw *volatile* chainptr, struct ip_fw *frwl,
if ((ftmp->fw_vianame)[0]) {
if (!(ftmp->fw_viadev = dev_get(ftmp->fw_vianame)))
ftmp->fw_viadev = (struct device *) -1;
- } else if (ftmp->fw_via.s_addr) {
- if (!(ftmp->fw_viadev = ip_dev_find(ftmp->fw_via.s_addr)))
- ftmp->fw_viadev = (struct device *) -1;
- else
- memcpy(ftmp->fw_vianame, ftmp->fw_viadev->name, IFNAMSIZ);
} else
ftmp->fw_viadev = NULL;