Commit 3ca4ce0e authored by Nathan Chancellor's avatar Nathan Chancellor Committed by Greg Kroah-Hartman

staging: android: vsoc: Fix ending '(' warnings in vsoc_ioctl

Fixes checkpatch.pl warnings about lines ending with parentheses.
Signed-off-by: default avatarNathan Chancellor <natechancellor@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a174ef68
...@@ -552,8 +552,8 @@ static long vsoc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -552,8 +552,8 @@ static long vsoc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
if (!node) if (!node)
return -ENOMEM; return -ENOMEM;
INIT_LIST_HEAD(&node->list); INIT_LIST_HEAD(&node->list);
rv = do_create_fd_scoped_permission( rv = do_create_fd_scoped_permission
region_p, (region_p,
node, node,
(struct fd_scoped_permission_arg __user *)arg); (struct fd_scoped_permission_arg __user *)arg);
if (!rv) { if (!rv) {
...@@ -582,9 +582,7 @@ static long vsoc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -582,9 +582,7 @@ static long vsoc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
break; break;
case VSOC_MAYBE_SEND_INTERRUPT_TO_HOST: case VSOC_MAYBE_SEND_INTERRUPT_TO_HOST:
if (!atomic_xchg( if (!atomic_xchg(reg_data->outgoing_signalled, 1)) {
reg_data->outgoing_signalled,
1)) {
writel(reg_num, vsoc_dev.regs + DOORBELL); writel(reg_num, vsoc_dev.regs + DOORBELL);
return 0; return 0;
} else { } else {
...@@ -595,16 +593,15 @@ static long vsoc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) ...@@ -595,16 +593,15 @@ static long vsoc_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
case VSOC_SEND_INTERRUPT_TO_HOST: case VSOC_SEND_INTERRUPT_TO_HOST:
writel(reg_num, vsoc_dev.regs + DOORBELL); writel(reg_num, vsoc_dev.regs + DOORBELL);
return 0; return 0;
case VSOC_WAIT_FOR_INCOMING_INTERRUPT: case VSOC_WAIT_FOR_INCOMING_INTERRUPT:
wait_event_interruptible( wait_event_interruptible
reg_data->interrupt_wait_queue, (reg_data->interrupt_wait_queue,
(atomic_read(reg_data->incoming_signalled) != 0)); (atomic_read(reg_data->incoming_signalled) != 0));
break; break;
case VSOC_DESCRIBE_REGION: case VSOC_DESCRIBE_REGION:
return do_vsoc_describe_region( return do_vsoc_describe_region
filp, (filp,
(struct vsoc_device_region __user *)arg); (struct vsoc_device_region __user *)arg);
case VSOC_SELF_INTERRUPT: case VSOC_SELF_INTERRUPT:
......
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