net/macsonic: Drop redundant MACH_IS_MAC test
authorFinn Thain <[email protected]>
Sat, 24 Feb 2018 23:27:25 +0000 (18:27 -0500)
committerDavid S. Miller <[email protected]>
Mon, 26 Feb 2018 19:40:02 +0000 (14:40 -0500)
The MACH_IS_MAC test is redundant here because the platform device
won't get registered unless MACH_IS_MAC.

Cc: Geert Uytterhoeven <[email protected]>
Signed-off-by: Finn Thain <[email protected]>
Reviewed-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
drivers/net/ethernet/natsemi/macsonic.c

index c744912f55a9a091578156262fbbd1e27cd14447..f6745a893c82a5061a7faae456c4c15df87ba419 100644 (file)
@@ -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