platform: goldfish: pipe: Remove reduntant casting to (void)
authorRoman Kiryanov <rkir@google.com>
Mon, 27 Aug 2018 18:23:10 +0000 (11:23 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Sep 2018 13:31:30 +0000 (15:31 +0200)
Casting to (void) is no-op.

Signed-off-by: Roman Kiryanov <rkir@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c

index cab1935..fb37499 100644 (file)
@@ -368,7 +368,7 @@ static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write)
        set_bit(wake_bit, &pipe->flags);
 
        /* Tell the emulator we're going to wait for a wake event */
-       (void)goldfish_cmd(pipe,
+       goldfish_cmd(pipe,
                is_write ? PIPE_CMD_WAKE_ON_WRITE : PIPE_CMD_WAKE_ON_READ);
 
        while (test_bit(wake_bit, &pipe->flags)) {
@@ -748,7 +748,7 @@ static int goldfish_pipe_release(struct inode *inode, struct file *filp)
        struct goldfish_pipe_dev *dev = pipe->dev;
 
        /* The guest is closing the channel, so tell the emulator right now */
-       (void)goldfish_cmd(pipe, PIPE_CMD_CLOSE);
+       goldfish_cmd(pipe, PIPE_CMD_CLOSE);
 
        spin_lock_irqsave(&dev->lock, flags);
        dev->pipes[pipe->id] = NULL;