]> git.baikalelectronics.ru Git - kernel.git/commit
staging: unisys: visorbus: Remove unneeded checks for valid variable addr
authorDavid Binder <david.binder@unisys.com>
Thu, 22 Dec 2016 16:09:00 +0000 (11:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Jan 2017 14:17:02 +0000 (15:17 +0100)
commit40e661932a8cec85edb10a8a855abc46c8528b26
tree6e8d480eb5c19b2252d6ae2c07670a8007eeee88
parent121b3f3c63c5783e7c6ade27c5953d04092f2306
staging: unisys: visorbus: Remove unneeded checks for valid variable addr

The 'retry' variable created in handle_command() is statically allocated,
and its address is never set to NULL. Therefore conditionals to verify
the validity of the retry variable's address are unnecessary.

Reported-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: David Binder <david.binder@unisys.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchipset.c