]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
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 d9a09d9637d9a09435e9a04553621d845f6bf9dd..a6558409ba45350a2449e8eb6b47b5bf6c4def61 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 */