Commit 90232394 authored by Tang Bin's avatar Tang Bin Committed by sanglipeng
Browse files

virtio-mmio: Use to_virtio_mmio_device() to simply code

stable inclusion
from stable-v5.10.192
commit b1fe05cc51262fb071908faee549bfd923fca808
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I933RF

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=b1fe05cc51262fb071908faee549bfd923fca808



--------------------------------

[ 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>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 535ece5e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment