staging: unisys: visorbus: remove channel_addr check in handle_command
authorSameer Wadgaonkar <sameer.wadgaonkar@unisys.com>
Fri, 19 May 2017 20:17:59 +0000 (16:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 May 2017 16:53:14 +0000 (18:53 +0200)
Removed a check for physaddr=0 in handle_command() function in
visorchipset.c.

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

index 8438b717b7b67a33825be291186af22252ff7bea..22150564b4fbe466e4ed642ffd1b8919a37e533b 100644 (file)
@@ -1593,9 +1593,6 @@ handle_command(struct controlvm_message inmsg, u64 channel_addr)
 
        /* create parsing context if necessary */
        local_addr = (inmsg.hdr.flags.test_message == 1);
-       if (channel_addr == 0)
-               return -EINVAL;
-
        parm_addr = channel_addr + inmsg.hdr.payload_vm_offset;
        parm_bytes = inmsg.hdr.payload_bytes;