fab351
From fa15223b70c04de0fdbd209a4bb1cb74876f7cfb Mon Sep 17 00:00:00 2001
fab351
From: Jonathan Lebon <jonathan@jlebon.com>
fab351
Date: Wed, 19 Feb 2020 11:11:32 -0500
fab351
Subject: [PATCH] network-legacy/ifup: drop redundant if-statement
fab351
fab351
No need to check that `$ret` is 0, we're already running inside an
fab351
if-statement block which checks this.
fab351
fab351
(cherry picked from commit 7795fde44c54bfe753cc07999a4c2f9dd7e2820d)
fab351
fab351
Resolves: #1807395
fab351
---
fab351
 modules.d/35network-legacy/ifup.sh | 10 ++++------
fab351
 1 file changed, 4 insertions(+), 6 deletions(-)
fab351
fab351
diff --git a/modules.d/35network-legacy/ifup.sh b/modules.d/35network-legacy/ifup.sh
fab351
index dd18d70b..eb7d2eb4 100755
fab351
--- a/modules.d/35network-legacy/ifup.sh
fab351
+++ b/modules.d/35network-legacy/ifup.sh
fab351
@@ -457,12 +457,10 @@ for p in $(getargs ip=); do
fab351
             dhcp|on|any|dhcp6)
fab351
             ;;
fab351
             *)
fab351
-                if [ $ret -eq 0 ]; then
fab351
-                    setup_net $netif
fab351
-                    source_hook initqueue/online $netif
fab351
-                    if [ -z "$manualup" ]; then
fab351
-                        /sbin/netroot $netif
fab351
-                    fi
fab351
+                setup_net $netif
fab351
+                source_hook initqueue/online $netif
fab351
+                if [ -z "$manualup" ]; then
fab351
+                    /sbin/netroot $netif
fab351
                 fi
fab351
                 ;;
fab351
         esac
fab351