Drivers: hv: vmbus: Reduce number of references to message in vmbus_on_msg_dpc()
authorAndrea Parri (Microsoft) <parri.andrea@gmail.com>
Wed, 9 Dec 2020 07:08:23 +0000 (08:08 +0100)
committerWei Liu <wei.liu@kernel.org>
Fri, 5 Feb 2021 09:55:42 +0000 (09:55 +0000)
commit9c400d3548c39378327268fb18112b229f91b220
tree6b804c66b242aea0832caefb41e963518f1b9001
parente99c4afbee07e9323e9191a20b24d74dbf815bdf
Drivers: hv: vmbus: Reduce number of references to message in vmbus_on_msg_dpc()

Simplify the function by removing various references to the hv_message
'msg', introduce local variables 'msgtype' and 'payload_size'.

Suggested-by: Juan Vazquez <juvazq@microsoft.com>
Suggested-by: Michael Kelley <mikelley@microsoft.com>
Signed-off-by: Andrea Parri (Microsoft) <parri.andrea@gmail.com>
Reviewed-by: Michael Kelley <mikelley@microsoft.com>
Link: https://lore.kernel.org/r/20201209070827.29335-3-parri.andrea@gmail.com
Signed-off-by: Wei Liu <wei.liu@kernel.org>
drivers/hv/vmbus_drv.c