staging: unisys: Don't check for null before getting driver device.
authorDavid Kershner <david.kershner@unisys.com>
Wed, 30 Aug 2017 17:36:17 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:39 +0000 (18:17 +0200)
commit68f4f7665caef801d1ad361f613a9edd7c40bb16
tree3955fbb920fe2ffd1ad485987f433dfb5f19f56c
parent9a8dc900ec8929c63345350d544c349c687e2055
staging: unisys: Don't check for null before getting driver device.

The macro to convert to the driver object was giving a checkpatch warning
when it ateempted to check for a null driver. It would return NULL if it
found it, but only one location was checking to see if it was NULL.

Remove the check in the MACRO and do it prior to calling the macro if
required.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: Tim Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/include/visorbus.h
drivers/staging/unisys/visorbus/visorbus_main.c