• YueHaibing's avatar
    staging: fbtft: fix strncmp() size warning · b57f9447
    YueHaibing authored
    strncmp() stops comparing when either the end of one of the first two
    arguments is reached or when 'n' characters have been compared, whichever
    comes first.That means that strncmp(s1, s2, n) is equivalent to
    strcmp(s1, s2) if n exceeds the length of s1 or the length of s2.
    
    This patch avoids that the following warning is reported by smatch:
    
    drivers/staging/fbtft/fbtft_device.c:1458
     fbtft_device_init() error: strncmp() '"list"' too small (5 vs 32)
    Signed-off-by: default avatarYueHaibing <yuehaibing@huawei.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    b57f9447
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
README Loading commit data...
TODO Loading commit data...
fb_agm1264k-fl.c Loading commit data...
fb_bd663474.c Loading commit data...
fb_hx8340bn.c Loading commit data...
fb_hx8347d.c Loading commit data...
fb_hx8353d.c Loading commit data...
fb_hx8357d.c Loading commit data...
fb_hx8357d.h Loading commit data...
fb_ili9163.c Loading commit data...
fb_ili9320.c Loading commit data...
fb_ili9325.c Loading commit data...
fb_ili9340.c Loading commit data...
fb_ili9341.c Loading commit data...
fb_ili9481.c Loading commit data...
fb_ili9486.c Loading commit data...
fb_pcd8544.c Loading commit data...
fb_ra8875.c Loading commit data...
fb_s6d02a1.c Loading commit data...
fb_s6d1121.c Loading commit data...
fb_sh1106.c Loading commit data...
fb_ssd1289.c Loading commit data...
fb_ssd1305.c Loading commit data...
fb_ssd1306.c Loading commit data...
fb_ssd1325.c Loading commit data...
fb_ssd1331.c Loading commit data...
fb_ssd1351.c Loading commit data...
fb_st7735r.c Loading commit data...
fb_st7789v.c Loading commit data...
fb_tinylcd.c Loading commit data...
fb_tls8204.c Loading commit data...
fb_uc1611.c Loading commit data...
fb_uc1701.c Loading commit data...
fb_upd161704.c Loading commit data...
fb_watterott.c Loading commit data...
fbtft-bus.c Loading commit data...
fbtft-core.c Loading commit data...
fbtft-io.c Loading commit data...
fbtft-sysfs.c Loading commit data...
fbtft.h Loading commit data...
fbtft_device.c Loading commit data...
flexfb.c Loading commit data...
internal.h Loading commit data...