Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1492514 > unrolled thread
| Started by | shyam saini <mayhs11saini@gmail.com> |
|---|---|
| First post | 2016-09-28 12:30 +0200 |
| Last post | 2016-09-28 14:10 +0200 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.kernel
[PATCH 1/1] Staging: android: ion : Remove explicit NULL comparison and Fixed coding style shyam saini <mayhs11saini@gmail.com> - 2016-09-28 12:30 +0200
Re: [PATCH 1/1] Staging: android: ion : Remove explicit NULL comparison and Fixed coding style Greg KH <gregkh@linuxfoundation.org> - 2016-09-28 14:10 +0200
| From | shyam saini <mayhs11saini@gmail.com> |
|---|---|
| Date | 2016-09-28 12:30 +0200 |
| Subject | [PATCH 1/1] Staging: android: ion : Remove explicit NULL comparison and Fixed coding style |
| Message-ID | <smkhH-5s5-5@gated-at.bofh.it> |
Remove the explicit NULL comparison and rewrite in a compact form and
fixed switch case indentation 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..0b7bb30 100644
--- a/drivers/staging/android/ion/ion_of.c
+++ b/drivers/staging/android/ion/ion_of.c
@@ -36,7 +36,7 @@ int ion_parse_dt_heap_common(struct device_node *heap_node,
break;
}
- if (compatible[i].name == NULL)
+ if (!compatible[i].name)
return -ENODEV;
heap->id = compatible[i].heap_id;
@@ -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;
--
2.7.4
[toc] | [next] | [standalone]
| From | Greg KH <gregkh@linuxfoundation.org> |
|---|---|
| Date | 2016-09-28 14:10 +0200 |
| Subject | Re: [PATCH 1/1] Staging: android: ion : Remove explicit NULL comparison and Fixed coding style |
| Message-ID | <smlQu-6sb-19@gated-at.bofh.it> |
| In reply to | #1492514 |
On Wed, Sep 28, 2016 at 03:55:32PM +0530, shyam saini wrote: > Remove the explicit NULL comparison and rewrite in a compact form and > fixed switch case indentation issue. If you need "and" in a subject: line for a patch, that's a huge hint that this needs to be at least 2 patches. Please only ever do "one type of thing" in a single patch. And no, that one thing can not be "fix all coding style issues" :) Please break this up into multiple patches and resend it. thanks, greg k-h
[toc] | [prev] | [standalone]
Back to top | Article view | linux.kernel
csiph-web