Commit d2bb3905ab9bafebd0872ceef9466c32849429d7

Authored by Andy Shevchenko
Committed by David S. Miller
1 parent 35e4237973

atm: nicstar: fix regression made by previous patch

The commit 8390f814 "atm: nicstar: re-use native mac_pton() helper" did a
usefull thing. However, mac_pton() returns 1 in the case of the successfully
parsed input. This patch fixes a typo.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/atm/nicstar.c
... ... @@ -778,7 +778,7 @@
778 778 return error;
779 779 }
780 780  
781   - if (mac[i] == NULL || mac_pton(mac[i], card->atmdev->esi)) {
  781 + if (mac[i] == NULL || !mac_pton(mac[i], card->atmdev->esi)) {
782 782 nicstar_read_eprom(card->membase, NICSTAR_EPROM_MAC_ADDR_OFFSET,
783 783 card->atmdev->esi, 6);
784 784 if (memcmp(card->atmdev->esi, "\x00\x00\x00\x00\x00\x00", 6) ==