summaryrefslogtreecommitdiffstats
path: root/drivers/media/usb/go7007/go7007-fw.c
diff options
context:
space:
mode:
authorHans Verkuil <hans.verkuil@cisco.com>2018-05-14 08:37:17 -0400
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-05-25 15:30:04 -0400
commita7f3482ddbf2b2507f9db7e442bfa5382c8aaaf7 (patch)
tree169e7416967df3e893170b4f5830cb520cf20b5a /drivers/media/usb/go7007/go7007-fw.c
parente86d1929adae5d5a20617aade8ab19e53297dc4e (diff)
downloadlinux-stable-a7f3482ddbf2b2507f9db7e442bfa5382c8aaaf7.tar.gz
linux-stable-a7f3482ddbf2b2507f9db7e442bfa5382c8aaaf7.tar.bz2
linux-stable-a7f3482ddbf2b2507f9db7e442bfa5382c8aaaf7.zip
media: go7007: fix two sparse warnings
drivers/media/usb/go7007/go7007-v4l2.c:637:2: warning: 'strncpy' specified bound 32 equals destination size [-Wstringop-truncation] drivers/media/usb/go7007/go7007-fw.c:1507:3: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/usb/go7007/go7007-fw.c')
-rw-r--r--drivers/media/usb/go7007/go7007-fw.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/usb/go7007/go7007-fw.c b/drivers/media/usb/go7007/go7007-fw.c
index 60bf5f0644d1..87b4fc48ef09 100644
--- a/drivers/media/usb/go7007/go7007-fw.c
+++ b/drivers/media/usb/go7007/go7007-fw.c
@@ -1514,7 +1514,10 @@ static int do_special(struct go7007 *go, u16 type, __le16 *code, int space,
case V4L2_PIX_FMT_MPEG4:
return gen_mpeg4hdr_to_package(go, code, space,
framelen);
+ default:
+ break;
}
+ break;
case SPECIAL_BRC_CTRL:
return brctrl_to_package(go, code, space, framelen);
case SPECIAL_CONFIG: