svn commit: r240571 - head/sys/arm/ti/cpsw

John-Mark Gurney jmg at FreeBSD.org
Sun Sep 16 19:42:28 UTC 2012


Author: jmg
Date: Sun Sep 16 19:42:27 2012
New Revision: 240571
URL: http://svn.freebsd.org/changeset/base/240571

Log:
  remove some unnecessary debugging statements, dead code and incorrect
  comment...
  
  Reviewed by:	gnn, imp

Modified:
  head/sys/arm/ti/cpsw/if_cpsw.c

Modified: head/sys/arm/ti/cpsw/if_cpsw.c
==============================================================================
--- head/sys/arm/ti/cpsw/if_cpsw.c	Sun Sep 16 18:57:32 2012	(r240570)
+++ head/sys/arm/ti/cpsw/if_cpsw.c	Sun Sep 16 19:42:27 2012	(r240571)
@@ -713,8 +713,6 @@ cpsw_ioctl(struct ifnet *ifp, u_long com
 		sc->cpsw_if_flags = ifp->if_flags;
 		CPSW_GLOBAL_UNLOCK(sc);
 		break;
-		printf("%s: SIOCSIFFLAGS\n",__func__);
-		break;
 	case SIOCADDMULTI:
 		printf("%s: SIOCADDMULTI\n",__func__);
 		break;
@@ -724,12 +722,10 @@ cpsw_ioctl(struct ifnet *ifp, u_long com
 	case SIOCSIFCAP:
 		printf("%s: SIOCSIFCAP\n",__func__);
 		break;
-	case SIOCGIFMEDIA: /* fall through */
-		printf("%s: SIOCGIFMEDIA\n",__func__);
+	case SIOCGIFMEDIA:
 		error = ifmedia_ioctl(ifp, ifr, &sc->mii->mii_media, command);
 		break;
 	case SIOCSIFMEDIA:
-		printf("%s: SIOCSIFMEDIA\n",__func__);
 		error = ifmedia_ioctl(ifp, ifr, &sc->mii->mii_media, command);
 		break;
 	default:


More information about the svn-src-all mailing list