[PATCH] firmware: arm_scmi: Remove unnecessary (void*) conversions
From: yunchuan
Date: Wed Apr 19 2023 - 04:19:55 EST
Pointer variables of void * type do not require type cast.
Signed-off-by: yunchuan <yunchuan@xxxxxxxxxxxx>
---
drivers/firmware/arm_scmi/virtio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/arm_scmi/virtio.c b/drivers/firmware/arm_scmi/virtio.c
index d68c01cb7aa0..f0863b9c0e5d 100644
--- a/drivers/firmware/arm_scmi/virtio.c
+++ b/drivers/firmware/arm_scmi/virtio.c
@@ -392,7 +392,7 @@ static bool virtio_chan_available(struct device_node *of_node, int idx)
if (WARN_ON_ONCE(!scmi_vdev))
return false;
- channels = (struct scmi_vio_channel *)scmi_vdev->priv;
+ channels = scmi_vdev->priv;
switch (idx) {
case VIRTIO_SCMI_VQ_TX:
--
2.30.2