summaryrefslogtreecommitdiffstats
path: root/drivers/net/sky2.c
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2009-12-14 08:33:47 +0000
committerDavid S. Miller <davem@davemloft.net>2009-12-14 22:07:15 -0800
commitdae3a5112d258764cad9e48439ca7dd05c2edca1 (patch)
tree03df08947b7f1b83e68bd8c7cb9a207e1da545cd /drivers/net/sky2.c
parent8bf2805918e9ee3ccdc18590fec0416a01d635c9 (diff)
downloadop-kernel-dev-dae3a5112d258764cad9e48439ca7dd05c2edca1.zip
op-kernel-dev-dae3a5112d258764cad9e48439ca7dd05c2edca1.tar.gz
sky2: print Optima chip name
Off by one in name lookup makes Optima display as (chip 0xbc) Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/sky2.c')
-rw-r--r--drivers/net/sky2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c
index 89a05d6..9431f64 100644
--- a/drivers/net/sky2.c
+++ b/drivers/net/sky2.c
@@ -4530,7 +4530,7 @@ static const char *sky2_name(u8 chipid, char *buf, int sz)
"Optima", /* 0xbc */
};
- if (chipid >= CHIP_ID_YUKON_XL && chipid < CHIP_ID_YUKON_OPT)
+ if (chipid >= CHIP_ID_YUKON_XL && chipid <= CHIP_ID_YUKON_OPT)
strncpy(buf, name[chipid - CHIP_ID_YUKON_XL], sz);
else
snprintf(buf, sz, "(chip %#x)", chipid);
OpenPOWER on IntegriCloud