mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] goldfish_pipe: Fix unlikely() misuse
@ 2015-04-10 23:47 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2015-04-10 23:47 UTC (permalink / raw)
  To: David 'Digit' Turner; +Cc: Greg KH, LKML, Alan Cox

Move the close parenthesis.

Signed-off-by: Joe Perches <joe@perches.com>
---
 drivers/platform/goldfish/goldfish_pipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c
index d9a09d9..a655840 100644
--- a/drivers/platform/goldfish/goldfish_pipe.c
+++ b/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 */



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2015-04-10 23:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-04-10 23:47 [PATCH] goldfish_pipe: Fix unlikely() misuse Joe Perches

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®