summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Sun <sironhide0null@gmail.com>2015-08-27 15:41:06 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-09-12 18:24:27 -0700
commitb8d3bfa7802a5d5ffea7e14837147d063df8eabe (patch)
tree60898f47e068c97622caa2615d5300c46e9a96a6
parentd2e4f687c463e5080af203de2251b5b78b01e58c (diff)
downloadop-kernel-dev-b8d3bfa7802a5d5ffea7e14837147d063df8eabe.zip
op-kernel-dev-b8d3bfa7802a5d5ffea7e14837147d063df8eabe.tar.gz
staging: android: ashmem.c: 'No space necessary after' style issue
fix two CHECK issues by checkpatch.pl with --strict: No space is necessary after a cast Signed-off-by: Peng Sun <sironhide0null@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/android/ashmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/android/ashmem.c b/drivers/staging/android/ashmem.c
index b340ddc..1312600 100644
--- a/drivers/staging/android/ashmem.c
+++ b/drivers/staging/android/ashmem.c
@@ -716,7 +716,7 @@ static int ashmem_pin_unpin(struct ashmem_area *asma, unsigned long cmd,
if (unlikely((pin.offset | pin.len) & ~PAGE_MASK))
return -EINVAL;
- if (unlikely(((__u32) -1) - pin.offset < pin.len))
+ if (unlikely(((__u32)-1) - pin.offset < pin.len))
return -EINVAL;
if (unlikely(PAGE_ALIGN(asma->size) < pin.offset + pin.len))
@@ -760,7 +760,7 @@ static long ashmem_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
ret = -EINVAL;
if (!asma->file) {
ret = 0;
- asma->size = (size_t) arg;
+ asma->size = (size_t)arg;
}
break;
case ASHMEM_GET_SIZE:
OpenPOWER on IntegriCloud