diff options
Diffstat (limited to 'drivers/platform/goldfish/goldfish_pipe.c')
-rw-r--r-- | drivers/platform/goldfish/goldfish_pipe.c | 2 |
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, | |||
282 | return -EIO; | 282 | return -EIO; |
283 | 283 | ||
284 | /* Null reads or writes succeeds */ | 284 | /* Null reads or writes succeeds */ |
285 | if (unlikely(bufflen) == 0) | 285 | if (unlikely(bufflen == 0)) |
286 | return 0; | 286 | return 0; |
287 | 287 | ||
288 | /* Check the buffer range for access */ | 288 | /* Check the buffer range for access */ |