Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1213520

[PATCH 2/8] fix staging:android style issue:No space is necessary after a cast

From Peng Sun <sironhide0null@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 2/8] fix staging:android style issue:No space is necessary after a cast
Date 2015-08-26 06:00 +0200
Message-ID <q1A2t-2sv-9@gated-at.bofh.it> (permalink)
References <q1A2t-2sv-5@gated-at.bofh.it> <q1A2t-2sv-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Signed-off-by: Peng Sun <sironhide0null@gmail.com>
---
 drivers/staging/android/ashmem.c | 4 ++--
 1 file 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:
-- 
1.9.1

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 2/8] fix staging:android style issue:No space is necessary after a cast Peng Sun <sironhide0null@gmail.com> - 2015-08-26 06:00 +0200
  [PATCH 3/8] fix staging:android style issue:Alignment should match open parenthesis Peng Sun <sironhide0null@gmail.com> - 2015-08-26 06:00 +0200
    Re: [PATCH 3/8] fix staging:android style issue:Alignment should  match open parenthesis Giedrius Statkevičius   <giedrius.statkevicius@gmail.com> - 2015-08-26 11:40 +0200

csiph-web