staging: android/ion: Don't use return in void function
authorBogdan Purcareata <bogdan.purcareata@gmail.com>
Thu, 12 Jan 2017 22:01:54 +0000 (00:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Jan 2017 17:10:26 +0000 (18:10 +0100)
Return statements are superfluous in void functions, and checkpatch
complains about them too.

Remove offending return.

Signed-off-by: Bogdan Purcareata <bogdan.purcareata@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_of.c

index 46b2bb99bfd6b2081a0775ce9ad87393bfcd5b2e..7791c705ea315694ecd535ccff90d980d2709366 100644 (file)
@@ -161,7 +161,6 @@ static int rmem_ion_device_init(struct reserved_mem *rmem, struct device *dev)
 static void rmem_ion_device_release(struct reserved_mem *rmem,
                                    struct device *dev)
 {
-       return;
 }
 
 static const struct reserved_mem_ops rmem_dma_ops = {