staging: unisys: visorbus: don't need local variable cmd
The local variable cmd was just being used to dereference a field inside of it. Get rid of the variable and just derefernce the parameter being passed in. 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>
This commit is contained in:
Родитель
977980ac59
Коммит
3f5a562b1e
|
@ -595,9 +595,8 @@ err_respond:
|
|||
|
||||
static int visorbus_destroy(struct controlvm_message *inmsg)
|
||||
{
|
||||
struct controlvm_message_packet *cmd = &inmsg->cmd;
|
||||
struct controlvm_message_header *pmsg_hdr = NULL;
|
||||
u32 bus_no = cmd->destroy_bus.bus_no;
|
||||
u32 bus_no = inmsg->cmd.destroy_bus.bus_no;
|
||||
struct visor_device *bus_info;
|
||||
int err;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче