OSDN Git Service

goldfish_pipe: Fix unlikely() misuse
authorJoe Perches <joe@perches.com>
Fri, 10 Apr 2015 23:47:35 +0000 (16:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 24 May 2015 19:24:35 +0000 (12:24 -0700)
Move the close parenthesis.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/platform/goldfish/goldfish_pipe.c

index d9a09d9..a655840 100644 (file)
@@ -282,7 +282,7 @@ static ssize_t goldfish_pipe_read_write(struct file *filp, char __user *buffer,
                return -EIO;
 
        /* Null reads or writes succeeds */
-       if (unlikely(bufflen) == 0)
+       if (unlikely(bufflen == 0))
                return 0;
 
        /* Check the buffer range for access */