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


Groups > linux.kernel > #1492777

[PATCH 1/1] Staging: android: ion: Fixed coding style issues

From shyam saini <mayhs11saini@gmail.com>
Newsgroups linux.kernel
Subject [PATCH 1/1] Staging: android: ion: Fixed coding style issues
Date 2016-09-28 19:00 +0200
Message-ID <smqnd-PP-11@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Fixed switch case indentation issue and void function return statement
issue

Signed-off-by: shyam saini <mayhs11saini@gmail.com>
---
 drivers/staging/android/ion/ion_of.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)

diff --git a/drivers/staging/android/ion/ion_of.c b/drivers/staging/android/ion/ion_of.c
index de0899a..01f3067 100644
--- a/drivers/staging/android/ion/ion_of.c
+++ b/drivers/staging/android/ion/ion_of.c
@@ -58,15 +58,15 @@ int ion_setup_heap_common(struct platform_device *parent,
 	int ret = 0;
 
 	switch (heap->type) {
-		case ION_HEAP_TYPE_CARVEOUT:
-		case ION_HEAP_TYPE_CHUNK:
-			if (heap->base && heap->size)
-				return 0;
-
-			ret = of_reserved_mem_device_init(heap->priv);
-			break;
-		default:
-			break;
+	case ION_HEAP_TYPE_CARVEOUT:
+	case ION_HEAP_TYPE_CHUNK:
+		if (heap->base && heap->size)
+			return 0;
+
+		ret = of_reserved_mem_device_init(heap->priv);
+		break;
+	default:
+		break;
 	}
 
 	return ret;
@@ -162,7 +162,7 @@ static int rmem_ion_device_init(struct reserved_mem *rmem, struct device *dev)
 static void rmem_ion_device_release(struct reserved_mem *rmem,
 					struct device *dev)
 {
-	return;
+
 }
 
 static const struct reserved_mem_ops rmem_dma_ops = {
-- 
2.7.4

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


Thread

[PATCH 1/1] Staging: android: ion: Fixed coding style issues shyam saini <mayhs11saini@gmail.com> - 2016-09-28 19:00 +0200
  Re: [PATCH 1/1] Staging: android: ion: Fixed coding style issues Greg KH <gregkh@linuxfoundation.org> - 2016-10-02 17:00 +0200

csiph-web