sky2: print Optima chip name
authorstephen hemminger <shemminger@vyatta.com>
Mon, 14 Dec 2009 08:33:47 +0000 (08:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Dec 2009 06:07:15 +0000 (22:07 -0800)
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>
drivers/net/sky2.c

index 89a05d6..9431f64 100644 (file)
@@ -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);