Skip to contentSkip to conversation

Staging: android: ion: Fixed coding style issues

PATCH In review shyam saini 2 participants 2 messages Sep 28, 2016 – Oct 2, 2016 Staging

lore
Share & tools
lore
#0 lore raw

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

Fixed switch case indentation issue and void function return statement issue

---
 drivers/staging/android/ion/ion_of.c | 20 ++++++++++----------
 1 file changed, 10 insertions(+), 10 deletions(-)
drivers/staging/android/ion/ion_of.c +10 -10
index de0899a..01f3067 100644
@@ -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 = {
Signature · 1 line
2.7.4
maintainer
#1 lore raw
Quoted 2 lines · shyam saini

Fixed switch case indentation issue and void function return statement issue

That's two different things in one patch, please break this up into two different patches (which will let me reject one of them, see the archives for why...)

thanks,

greg k-h