]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: unisys: visorbus: Remove check for valid parm_addr.
authorDavid Kershner <david.kershner@unisys.com>
Wed, 30 Aug 2017 17:36:22 +0000 (13:36 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Aug 2017 16:17:39 +0000 (18:17 +0200)
The variable parm_addr will never be null, so no need to check for it.

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/visorbus/visorchipset.c

index 98c991bb67e540fa65b79a86f9877002acddc74d..e5d051f1d5f7a4bc1f7374ce705a701a8f85ca11 100644 (file)
@@ -1523,7 +1523,7 @@ static int handle_command(struct controlvm_message inmsg, u64 channel_addr)
         * within our OS-controlled memory. We need to know that, because it
         * makes a difference in how we compute the virtual address.
         */
-       if (parm_addr && parm_bytes) {
+       if (parm_bytes) {
                bool retry = false;
 
                parser_ctx =