[tulip] Missing "return" in tulip private_ioctl ?

Donald Becker becker@scyld.com
Sun Apr 28 18:22:01 2002


On Sun, 28 Apr 2002, Moti Haimovsky wrote:

> Subject: [tulip] Missing "return" in tulip private_ioctl ?

You can call the ioctl() either implicitly using and retrieving the
current transceiver, or explicitly specifying a transceiver.

> Why isn't there a "return 0" in
>          case SIOCGMIIPHY:               /* Get address of MII PHY in use. */
...
> The case just continues, reads an arbitrary (may be illegal ?) mii register
> and returns.

See the pci-skeleton.c example.
    ftp://www.scyld.com/pub/network/pci-skeleton.c

-- 
Donald Becker				becker@scyld.com
Scyld Computing Corporation		http://www.scyld.com
410 Severn Ave. Suite 210		Second Generation Beowulf Clusters
Annapolis MD 21403			410-990-9993