staging:android:ion: Fix comparison with NULL
authorYannis Damigos <giannis.damigos@gmail.com>
Tue, 27 Sep 2016 07:38:23 +0000 (10:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Sep 2016 11:14:48 +0000 (13:14 +0200)
commit66fa610095f758d1793a30d1cd57a0c1432258e2
treee1a4b0586f39a271cfcce9b006970e176c2c2586
parent9f7a104c2be97902752f7d7a15e955b2de402356
staging:android:ion: Fix comparison with NULL

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 == NULL)

Signed-off-by: Yannis Damigos <giannis.damigos@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_of.c