summaryrefslogtreecommitdiffstats
path: root/.gitignore
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-12-18 22:28:21 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-19 08:29:28 +0100
commitb57f944785c5764725a7a6eff548a70bafb41a2a (patch)
treedc701f979db199147190778411fa6dc26decfd1c /.gitignore
parenta86028f8e3eea59517cb47895faad04b6ae8d8e1 (diff)
staging: fbtft: fix strncmp() size warning
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: YueHaibing <yuehaibing@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '.gitignore')
0 files changed, 0 insertions, 0 deletions