Skip to contentSkip to conversation

goldfish_pipe: Fix unlikely() misuse

PATCH New Joe Perches 1 participant 1 message Apr 10, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 goldfish_pipe: Fix unlikely() misuse

Move the close parenthesis.

---
 drivers/platform/goldfish/goldfish_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/goldfish/goldfish_pipe.c +1 -1
index d9a09d9..a655840 100644
@@ -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 */