staging: unisys: visorbus: remove channel_addr check in handle_command

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>
This commit is contained in:
Sameer Wadgaonkar 2017-05-19 16:17:59 -04:00 committed by Greg Kroah-Hartman
parent d36c4857cb
commit d70dd24521
1 changed files with 0 additions and 3 deletions

View File

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