summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/natsemi
diff options
context:
space:
mode:
authorFinn Thain <fthain@telegraphics.com.au>2018-02-24 18:27:25 -0500
committerDavid S. Miller <davem@davemloft.net>2018-02-26 14:40:02 -0500
commit3d16bada58b2bdd15a840be09c04f49b40641838 (patch)
tree696daed1d96a20f0c41b7f571d21a8f415ae5a34 /drivers/net/ethernet/natsemi
parent0d12c6870dc4dc9067cb103c20cdb35c89f841e3 (diff)
downloadblackbird-op-linux-3d16bada58b2bdd15a840be09c04f49b40641838.tar.gz
blackbird-op-linux-3d16bada58b2bdd15a840be09c04f49b40641838.zip
net/macsonic: Drop redundant MACH_IS_MAC test
The MACH_IS_MAC test is redundant here because the platform device won't get registered unless MACH_IS_MAC. Cc: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/natsemi')
-rw-r--r--drivers/net/ethernet/natsemi/macsonic.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/ethernet/natsemi/macsonic.c b/drivers/net/ethernet/natsemi/macsonic.c
index c744912f55a9..f6745a893c82 100644
--- a/drivers/net/ethernet/natsemi/macsonic.c
+++ b/drivers/net/ethernet/natsemi/macsonic.c
@@ -311,9 +311,6 @@ static int mac_onboard_sonic_probe(struct net_device *dev)
int sr;
bool commslot = macintosh_config->expansion_type == MAC_EXP_PDS_COMM;
- if (!MACH_IS_MAC)
- return -ENODEV;
-
printk(KERN_INFO "Checking for internal Macintosh ethernet (SONIC).. ");
/* Bogus probing, on the models which may or may not have
OpenPOWER on IntegriCloud