From: stephen hemminger Date: Mon, 14 Dec 2009 08:33:47 +0000 (+0000) Subject: sky2: print Optima chip name X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=dae3a5112d258764cad9e48439ca7dd05c2edca1;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git sky2: print Optima chip name Off by one in name lookup makes Optima display as (chip 0xbc) Signed-off-by: Stephen Hemminger Signed-off-by: David S. Miller --- diff --git a/drivers/net/sky2.c b/drivers/net/sky2.c index 89a05d674ddc..9431f642beb0 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);