staging: android: ashmem.c: 'No space necessary after' style issue
authorPeng Sun <sironhide0null@gmail.com>
Thu, 27 Aug 2015 07:41:06 +0000 (15:41 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Sep 2015 01:24:27 +0000 (18:24 -0700)
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>
drivers/staging/android/ashmem.c

index b340ddcd66e60e4ae1834f7b5205907b36a6db72..1312600e2468d84e2c305f969af72f7fae386ea4 100644 (file)
@@ -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: