Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 9 Sep 2006 18:59:13 GMT
From:      Alexander Leidinger <netchild@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105907 for review
Message-ID:  <200609091859.k89IxDYC090344@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105907

Change 105907 by netchild@netchild_magellan on 2006/09/09 18:58:45

	Simplify the if/else tingle-tangle a little bit.

Affected files ...

.. //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#3 edit

Differences ...

==== //depot/projects/linuxolator/src/sys/compat/linux/linux_socket.c#3 (text+ko) ====

@@ -1238,14 +1238,12 @@
 	} else {
 		bsd_args.val = PTRIN(linux_args.optval);
 		bsd_args.avalsize = PTRIN(linux_args.optlen);
-		return (getsockopt(td, &bsd_args));
 	}
 
-	if (name == IPV6_NEXTHOP) {
-		error = getsockopt(td, &bsd_args);
+	error = getsockopt(td, &bsd_args);
+
+	if (name == IPV6_NEXTHOP)
 		bsd_to_linux_sockaddr((struct sockaddr *)bsd_args.val);
-	} else
-		error = getsockopt(td, &bsd_args);
 
 	return (error);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609091859.k89IxDYC090344>