Skip to content
Commit b1fe05cc authored by Tang Bin's avatar Tang Bin Committed by Greg Kroah-Hartman
Browse files

virtio-mmio: Use to_virtio_mmio_device() to simply code



[ Upstream commit da98b54d ]

The file virtio_mmio.c has defined the function to_virtio_mmio_device,
so use it instead of container_of() to simply code.

Signed-off-by: default avatarTang Bin <tangbin@cmss.chinamobile.com>
Link: https://lore.kernel.org/r/20210222055724.220-1-tangbin@cmss.chinamobile.com


Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Stable-dep-of: 55c91fed ("virtio-mmio: don't break lifecycle of vm_dev")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3b76d926
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment