summaryrefslogtreecommitdiffstats
path: root/drivers/platform/goldfish
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-04-11 01:47:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 21:24:35 +0200
commit3411d035eb31138b8b756a788056b9e9ccd5f656 (patch)
treeda9bcd0eb3cdbdfe0ca041d56901931ce5cbceb0 /drivers/platform/goldfish
parentpcmcia: fix a boot time warning in pcmcia cs code (diff)
downloadlinux-3411d035eb31138b8b756a788056b9e9ccd5f656.tar.xz
linux-3411d035eb31138b8b756a788056b9e9ccd5f656.zip
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>
Diffstat (limited to 'drivers/platform/goldfish')
-rw-r--r--drivers/platform/goldfish/goldfish_pipe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c
index d9a09d9637d9..a6558409ba45 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 */