Parcourir la source

goldfish_pipe: Fix unlikely() misuse

Move the close parenthesis.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Joe Perches il y a 10 ans
Parent
commit
3411d035eb
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      drivers/platform/goldfish/goldfish_pipe.c

+ 1 - 1
drivers/platform/goldfish/goldfish_pipe.c

@@ -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 */