patch-2.3.18 linux/net/atm/addr.c

Next file: linux/net/atm/atm_misc.c
Previous file: linux/net/atm/Makefile
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.17/linux/net/atm/addr.c linux/net/atm/addr.c
@@ -18,8 +18,7 @@
 
 	if (addr->sas_family != AF_ATMSVC) return -EAFNOSUPPORT;
 	if (!*addr->sas_addr.pub)
-		if (!*addr->sas_addr.prv) return -EINVAL;
-		else return 0;
+		return *addr->sas_addr.prv ? 0 : -EINVAL;
 	for (i = 1; i < ATM_E164_LEN+1; i++) /* make sure it's \0-terminated */
 		if (!addr->sas_addr.pub[i]) return 0;
 	return -EINVAL;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)