From c7bc365530709ccc29dfe90688de2c536b7be9a9 Mon Sep 17 00:00:00 2001 From: Andrew Vagin Date: Mon, 5 Oct 2015 16:01:00 +0300 Subject: [PATCH] sysctl: add the "fallthrough" annotation CID 152112 (#1 of 1): Missing break in switch (MISSING_BREAK) unterminated_case: The case for value 4 is not terminated by a 'break' statement. Signed-off-by: Andrew Vagin Signed-off-by: Pavel Emelyanov --- sysctl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysctl.c b/sysctl.c index 029079585b..f68dbe5e29 100644 --- a/sysctl.c +++ b/sysctl.c @@ -170,6 +170,7 @@ static int do_sysctl_op(int fd, struct sysctl_req *req, int op) switch (CTL_TYPE(req->type)) { case __CTL_U32A: nr = CTL_LEN(req->type); + /* fallthrough */ case CTL_U32: __SYSCTL_OP(ret, fd, req, u32, nr, op); break; @@ -178,6 +179,7 @@ static int do_sysctl_op(int fd, struct sysctl_req *req, int op) break; case __CTL_U64A: nr = CTL_LEN(req->type); + /* fallthrough */ case CTL_U64: __SYSCTL_OP(ret, fd, req, u64, nr, op); break;