avoid block in case statements unless necessary
authorDaniel Mack <zonque@gmail.com>
Tue, 17 Dec 2013 19:22:13 +0000 (20:22 +0100)
committerDaniel Mack <zonque@gmail.com>
Tue, 17 Dec 2013 19:22:13 +0000 (20:22 +0100)
handle.c

index 2d4f36812a6288b4cfd153953e3f9d32075aaac3..8d2c0fa328de0badd6764482d5ad1c7cfa4d8128 100644 (file)
--- a/handle.c
+++ b/handle.c
@@ -499,7 +499,7 @@ static long kdbus_handle_ioctl_ep_connected(struct file *file, unsigned int cmd,
                break;
        }
 
-       case KDBUS_CMD_MSG_RECV: {
+       case KDBUS_CMD_MSG_RECV:
                /* receive a pointer to a queued message */
                if (!KDBUS_IS_ALIGNED8((uintptr_t)buf)) {
                        ret = -EFAULT;
@@ -508,7 +508,6 @@ static long kdbus_handle_ioctl_ep_connected(struct file *file, unsigned int cmd,
 
                ret = kdbus_conn_recv_msg(conn, buf);
                break;
-       }
 
        case KDBUS_CMD_FREE: {
                u64 off;