[PATCHv2 1/5] staging:android:ion: Fix comparison with NULL

2016-09-23 Thread giannis . damigos
From: Yannis Damigos This patch fixes the following comparison with NULL issues: CHECK: Comparison to NULL could be written "compatible[i].name" + for (i = 0; compatible[i].name != NULL; i++) { CHECK: Comparison to NULL could be written "!compatible[i].name" + if (compatible[i].name

[PATCHv2 5/5] staging:android:ion: Fix void function return

2016-09-23 Thread giannis . damigos
From: Yannis Damigos This patch removes the return statement of void function WARNING: void function return statements are not generally useful + return; +} Signed-off-by: Yannis Damigos --- drivers/staging/android/ion/ion_of.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/

[PATCHv2 2/5] staging:android:ion: Fix whitespace issues

2016-09-23 Thread giannis . damigos
From: Yannis Damigos This patch fixes the following whitespace issues: CHECK: Alignment should match open parenthesis +int ion_parse_dt_heap_common(struct device_node *heap_node, + struct ion_platform_heap *heap, CHECK: Alignment should match open parenthesis + pr_in

[PATCHv2 3/5] staging:android:ion: Fix blank line issues

2016-09-23 Thread giannis . damigos
From: Yannis Damigos This patch fixes the following blank line issues: CHECK: Please don't use multiple blank lines + + CHECK: Please use a blank line after function/struct/union/enum declarations +} +RESERVEDMEM_OF_DECLARE(ion, "ion-region", rmem_ion_setup); Signed-off-by: Yannis Damigos ---

[PATCHv2 4/5] staging:android:ion: Fix switch case indentation

2016-09-23 Thread giannis . damigos
From: Yannis Damigos This patch fixes the following switch statement indentation issue: ERROR: switch and case should be at the same indent + switch (heap->type) { + case ION_HEAP_TYPE_CARVEOUT: + case ION_HEAP_TYPE_CHUNK: [...] + default: Signed-