]> asedeno.scripts.mit.edu Git - linux.git/commit
media: pt1: fix strncmp() size warning
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 11:32:27 +0000 (07:32 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Sat, 5 May 2018 11:32:27 +0000 (07:32 -0400)
commit5ebaf32866b649cc4e384725ce2742d705c064e6
tree0994b2bd61802bc2a7847950aaa65140d8c15bcf
parent20a63349b1423179612c7ad550e430a1eef49a19
media: pt1: fix strncmp() size warning

As warned by smatch:
drivers/media/pci/pt1/pt1.c:213 config_demod() error: strncmp() '"tc90522sat"' too small (11 vs 20)

Use the same strncmp() syntax as pt1_init_frontends() does.

Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/pci/pt1/pt1.c