Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2007 04:53:28 GMT
From:      Kip Macy <kmacy@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 128495 for review
Message-ID:  <200711020453.lA24rSjX076423@repoman.freebsd.org>

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

Change 128495 by kmacy@kmacy:storage:toestack on 2007/11/02 04:52:49

	remove null tdev printf and redundant tdev==NULL check

Affected files ...

.. //depot/projects/toestack/sys/netinet/tcp_ofld.c#4 edit

Differences ...

==== //depot/projects/toestack/sys/netinet/tcp_ofld.c#4 (text+ko) ====

@@ -47,12 +47,10 @@
 	
 	ifp = inp->inp_route.ro_rt->rt_ifp;
 	tdev = TOEDEV(ifp);
-	if (tdev == NULL) {
-		printf("tdev not set for ifp=%p name=%s\n", ifp, if_name(ifp));
+	if (tdev == NULL) 
 		return (EINVAL);
-	}
 	
-	if ((tdev == NULL) || (tdev->can_offload(tdev, so) == 0)) {
+	if (tdev->can_offload(tdev, so) == 0) {
 		printf("can't offload\n");
 		
 		return (EINVAL);



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