From: Daniel Wagner <[email protected]>

The last return can never be reached since the last test is
always true.

Reported by coverity.
---
 src/ipconfig.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/ipconfig.c b/src/ipconfig.c
index cfa8a7a..9452125 100644
--- a/src/ipconfig.c
+++ b/src/ipconfig.c
@@ -1754,10 +1754,8 @@ static const char *privacy2string(int privacy)
                return "disabled";
        else if (privacy == 1)
                return "enabled";
-       else if (privacy > 1)
+       else
                return "prefered";
-
-       return "disabled";
 }
 
 static int string2privacy(const char *privacy)
-- 
1.8.4.474.g128a96c

_______________________________________________
connman mailing list
[email protected]
https://lists.connman.net/mailman/listinfo/connman

Reply via email to