]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
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 89a05d674ddca5c1acc6748fe2774299f5cc2b95..9431f642beb08ef8e3b1aac4ff256788592bc895 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);