]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3a91a27e005258057e5e43fa34bce951c50a8182
tree3955fbb920fe2ffd1ad485987f433dfb5f19f56c
parentd4a76d7f2b643bc7ca24a5b8f24def0a8dd9b0cc
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