staging: android: ion: Deletion of unnecessary checks before two function calls
commit698f140d67e0a92b6d4606c67fdf42b3853c34b6
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 23 Nov 2014 17:48:15 +0000 (23 18:48 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Nov 2014 21:42:53 +0000 (26 13:42 -0800)
tree302e74863e19fd293f6d249cafda621bd5551e22
parent74ed42c73d7b3819d2c80164840aa8f00be3975d
staging: android: ion: Deletion of unnecessary checks before two function calls

The functions ion_heap_destroy() and vfree() perform also input
parameter validation. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion.c
drivers/staging/android/ion/ion_dummy_driver.c
drivers/staging/android/ion/tegra/tegra_ion.c