[PATCH] Redundant check removed There was an extra check before return ,which was allready checked once shouldnt be done again.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Signed-off-by: Bipin Kumar <bipin.k@xxxxxxxxxxx>
Signed-off-by: Avichal Agrawal <avichal.a@xxxxxxxxxxx>
---
 wpa_supplicant/ctrl_iface_named_pipe.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/wpa_supplicant/ctrl_iface_named_pipe.c b/wpa_supplicant/ctrl_iface_named_pipe.c
index 54e0e2f..cc50e3d 100644
--- a/wpa_supplicant/ctrl_iface_named_pipe.c
+++ b/wpa_supplicant/ctrl_iface_named_pipe.c
@@ -392,10 +392,10 @@ static int ctrl_iface_parse(struct ctrl_iface_priv *priv, const char *params)
 		sddl = os_strstr(params, " SDDL=");
 		if (sddl)
 			sddl += 6;
+		else
+			return 0;
 	}
 
-	if (!sddl)
-		return 0;
 
 	wpa_printf(MSG_DEBUG, "CTRL: SDDL='%s'", sddl);
 	os_memset(&priv->attr, 0, sizeof(priv->attr));
-- 
1.7.9.5


_______________________________________________
Hostap mailing list
Hostap@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/hostap



[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux