niu: Remove redundant PHY ID test.
authorDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2011 02:59:07 +0000 (21:59 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2011 02:59:07 +0000 (21:59 -0500)
Reported-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/niu.c

index 680b107fdabd0487d6a58613d06d37b9bf227e98..56d106e58088fa9517c3020174640dcf06965004 100644 (file)
@@ -8579,9 +8579,11 @@ static int __devinit phy_record(struct niu_parent *parent,
        if (dev_id_1 < 0 || dev_id_2 < 0)
                return 0;
        if (type == PHY_TYPE_PMA_PMD || type == PHY_TYPE_PCS) {
+               /* Becuase of the NIU_PHY_ID_MASK being applied, the 8704
+                * test covers the 8706 as well.
+                */
                if (((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_BCM8704) &&
-                   ((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_MRVL88X2011) &&
-                   ((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_BCM8706))
+                   ((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_MRVL88X2011))
                        return 0;
        } else {
                if ((id & NIU_PHY_ID_MASK) != NIU_PHY_ID_BCM5464R)