summaryrefslogtreecommitdiffstats
path: root/drivers/platform
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-04-10 16:47:35 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-05-24 12:24:35 -0700
commit3411d035eb31138b8b756a788056b9e9ccd5f656 (patch)
treeda9bcd0eb3cdbdfe0ca041d56901931ce5cbceb0 /drivers/platform
parentd3046ba809ce4a3c34d605000cdce48c6ba54b6c (diff)
downloadop-kernel-dev-3411d035eb31138b8b756a788056b9e9ccd5f656.zip
op-kernel-dev-3411d035eb31138b8b756a788056b9e9ccd5f656.tar.gz
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')
-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 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 */
OpenPOWER on IntegriCloud