staging: fsl-mc: simplify couple of deallocations
authorLaurentiu Tudor <laurentiu.tudor@nxp.com>
Thu, 8 Jun 2017 14:28:48 +0000 (17:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Jun 2017 10:14:12 +0000 (12:14 +0200)
commita042fbed02904493ae6df26ec836045f5a7d3ce2
tree282cd88f6a1fbae1d72a2d2a1dcac2b97b35d39c
parent72f3415f812c12b8dfb05996514d1248c213250c
staging: fsl-mc: simplify couple of deallocations

Simplify a couple of deallocations code paths. This also fixes these
checkpatch.pl false positives:
 "WARNING: kfree(NULL) is safe and this check is probably not required"

Signed-off-by: Laurentiu Tudor <laurentiu.tudor@nxp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fsl-mc/bus/fsl-mc-bus.c