diff options
author | Finn Thain <fthain@telegraphics.com.au> | 2018-02-24 18:27:25 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-02-26 14:40:02 -0500 |
commit | 3d16bada58b2bdd15a840be09c04f49b40641838 (patch) | |
tree | 696daed1d96a20f0c41b7f571d21a8f415ae5a34 | |
parent | 0d12c6870dc4dc9067cb103c20cdb35c89f841e3 (diff) |
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>
-rw-r--r-- | drivers/net/ethernet/natsemi/macsonic.c | 3 |
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) | |||
311 | int sr; | 311 | int sr; |
312 | bool commslot = macintosh_config->expansion_type == MAC_EXP_PDS_COMM; | 312 | bool commslot = macintosh_config->expansion_type == MAC_EXP_PDS_COMM; |
313 | 313 | ||
314 | if (!MACH_IS_MAC) | ||
315 | return -ENODEV; | ||
316 | |||
317 | printk(KERN_INFO "Checking for internal Macintosh ethernet (SONIC).. "); | 314 | printk(KERN_INFO "Checking for internal Macintosh ethernet (SONIC).. "); |
318 | 315 | ||
319 | /* Bogus probing, on the models which may or may not have | 316 | /* Bogus probing, on the models which may or may not have |