Merge ath-next from git://git.kernel.org/pub/scm/linux/kernel/git/kvalo/ath.git
[linux-2.6-microblaze.git] / drivers / net / wireless / ath / ath9k / init.c
index 043801f..17c3189 100644 (file)
@@ -642,7 +642,7 @@ static int ath9k_of_init(struct ath_softc *sc)
        }
 
        mac = of_get_mac_address(np);
-       if (mac)
+       if (!IS_ERR(mac))
                ether_addr_copy(common->macaddr, mac);
 
        return 0;