Staging: android: ion: Remove explicit NULL comparison using Coccinelle
PATCH 1/1 Staging: android: ion: Remove explicit NULL comparison using Coccinelle
Remove the explicit NULL comparison and rewrite in a compact form.
--- drivers/staging/android/ion/ion_of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/android/ion/ion_of.c +1 -1
@@ -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;
Signature · 1 line
2.7.4
Greg KH
maintainerQuoted 6 lines · shyam saini
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by shyam saini <[email protected]>--- drivers/staging/android/ion/ion_of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Does not apply to my tree :(
Quoted 10 lines · Greg KH
Quoted 7 lines · shyam saini
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by shyam saini <[email protected]>---
drivers/staging/android/ion/ion_of.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Does not apply to my tree :(
Do I need to rebase it? Because I have already included all the maintainers in the patch which I got from scripts/get_maintainer.pl.
Thanks,
Shyam
Greg KH
maintainerQuoted 10 lines · Shyam Saini
Quoted 9 lines · Greg KH
Quoted 7 lines · shyam saini
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by shyam saini <[email protected]>---
drivers/staging/android/ion/ion_of.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 5 lines
Quoted 1 line
Does not apply to my tree :(
Do I need to rebase it? Because I have already included all the maintainers in the patch which I got from scripts/get_maintainer.pl.
If you want it applied, yes, you need to rebase it. Listing the maintainers doesn't help the patch to somehow magically be able to be applied to the tree :)
Please work against my staging-testing branch of the staging.git tree, as it has a lot of patches I just accepted in it that are not yet in linux-next.
thanks,
greg k-h
Quoted 28 lines · Greg KH
Quoted 13 lines · Shyam Saini
Quoted 11 lines · Greg KH
Quoted 9 lines · shyam saini
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by shyam saini <[email protected]>---
drivers/staging/android/ion/ion_of.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 5 lines
Quoted 1 line
Does not apply to my tree :(
Do I need to rebase it? Because I have already included all the maintainers in the patch which I got from
scripts/get_maintainer.pl.If you want it applied, yes, you need to rebase it. Listing the maintainers doesn't help the patch to somehow magically be able to be applied to the tree :)
Please work against my staging-testing branch of the staging.git tree,
as it has a lot of patches I just accepted in it that are not yet in linux-next.
Quoted 6 lines
thanks,
greg k-h
From now onward I will be working on your staging-testing tree.
But then why some of my patches which were based on linux-next were accepted?
for example today You've accepted
my patch "Staging: vt6655: Remove explicit NULL comparison using Coccinelle"
with commit id 4d932504b534584e116b400dd6e7b8ce7deb455c,
which you can check on
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.git
This patch was based on linux-next tree.
Please clear my confusion.
Thanks,
Shyam
Greg KH
maintainerQuoted 43 lines · Shyam Saini
Quoted 28 lines · Greg KH
Quoted 13 lines · Shyam Saini
Quoted 11 lines · Greg KH
Quoted 9 lines · shyam saini
Remove the explicit NULL comparison and rewrite in a compact form.
Signed-off-by shyam saini <[email protected]>---
drivers/staging/android/ion/ion_of.c | 2 +-1 file changed, 1 insertion(+), 1 deletion(-)Quoted 5 lines
Quoted 1 line
Does not apply to my tree :(
Do I need to rebase it? Because I have already included all the maintainers in the patch which I got from
scripts/get_maintainer.pl.If you want it applied, yes, you need to rebase it. Listing the maintainers doesn't help the patch to somehow magically be able to be applied to the tree :)
Please work against my staging-testing branch of the staging.git tree,
as it has a lot of patches I just accepted in it that are not yet in linux-next.Quoted 6 lines
thanks,
greg k-h
From now onward I will be working on your staging-testing tree.
But then why some of my patches which were based on linux-next were accepted?
for example today You've accepted
my patch "Staging: vt6655: Remove explicit NULL comparison using Coccinelle"
Quoted 6 lines
with commit id 4d932504b534584e116b400dd6e7b8ce7deb455c,
which you can check on
git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/staging.gitThis patch was based on linux-next tree.
Because maybe others have sent patches in for this specific area of the kernel, or there are changes made by other developer's trees (like the iio maintainer) for this driver. linux-next merges all of our trees together, and usually is the correct thing to use. But sometimes it doesn't work out due to the large number of patches I get for the staging tree (about 20-50 a day, sometimes more.)
thanks,
greg k-h