summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2018-12-18 17:28:21 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-19 10:29:28 +0300
commitb57f944785c5764725a7a6eff548a70bafb41a2a (patch)
treedc701f979db199147190778411fa6dc26decfd1c /tools/perf/scripts/python/exported-sql-viewer.py
parenta86028f8e3eea59517cb47895faad04b6ae8d8e1 (diff)
downloadlinux-b57f944785c5764725a7a6eff548a70bafb41a2a.tar.xz
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions