loop.c: optimize decoding of paired ioctls
* loop.c (loop_ioctl): Optimize decoding of LOOP_[GS]ET_STATUS
and LOOP_[GS]ET_STATUS64 ioctl pairs.
diff --git a/loop.c b/loop.c
index 26aaca0..178033d 100644
--- a/loop.c
+++ b/loop.c
@@ -146,23 +146,19 @@
return RVAL_DECODED;
switch (code) {
- case LOOP_SET_STATUS:
- decode_loop_info(tcp, arg);
- break;
-
case LOOP_GET_STATUS:
if (entering(tcp))
return 0;
+ /* fall through */
+ case LOOP_SET_STATUS:
decode_loop_info(tcp, arg);
break;
- case LOOP_SET_STATUS64:
- decode_loop_info64(tcp, arg);
- break;
-
case LOOP_GET_STATUS64:
if (entering(tcp))
return 0;
+ /* fall through */
+ case LOOP_SET_STATUS64:
decode_loop_info64(tcp, arg);
break;