remove some unnecessary debugging statements, dead code and incorrect

comment...

Reviewed by:	gnn, imp
This commit is contained in:
jmg 2012-09-16 19:42:27 +00:00
parent 19adcfe770
commit 6957c8b76f

View File

@ -713,8 +713,6 @@ cpsw_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
sc->cpsw_if_flags = ifp->if_flags; sc->cpsw_if_flags = ifp->if_flags;
CPSW_GLOBAL_UNLOCK(sc); CPSW_GLOBAL_UNLOCK(sc);
break; break;
printf("%s: SIOCSIFFLAGS\n",__func__);
break;
case SIOCADDMULTI: case SIOCADDMULTI:
printf("%s: SIOCADDMULTI\n",__func__); printf("%s: SIOCADDMULTI\n",__func__);
break; break;
@ -724,12 +722,10 @@ cpsw_ioctl(struct ifnet *ifp, u_long command, caddr_t data)
case SIOCSIFCAP: case SIOCSIFCAP:
printf("%s: SIOCSIFCAP\n",__func__); printf("%s: SIOCSIFCAP\n",__func__);
break; break;
case SIOCGIFMEDIA: /* fall through */ case SIOCGIFMEDIA:
printf("%s: SIOCGIFMEDIA\n",__func__);
error = ifmedia_ioctl(ifp, ifr, &sc->mii->mii_media, command); error = ifmedia_ioctl(ifp, ifr, &sc->mii->mii_media, command);
break; break;
case SIOCSIFMEDIA: case SIOCSIFMEDIA:
printf("%s: SIOCSIFMEDIA\n",__func__);
error = ifmedia_ioctl(ifp, ifr, &sc->mii->mii_media, command); error = ifmedia_ioctl(ifp, ifr, &sc->mii->mii_media, command);
break; break;
default: default: