Commit c7bc3655 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

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: 's avatarAndrew Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 928db333
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment