[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230419081920.857144-1-yunchuan@nfschina.com>
Date: Wed, 19 Apr 2023 16:19:20 +0800
From: yunchuan <yunchuan@...china.com>
To: sudeep.holla@....com, cristian.marussi@....com
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
yunchuan <yunchuan@...china.com>
Subject: [PATCH] firmware: arm_scmi: Remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast.
Signed-off-by: yunchuan <yunchuan@...china.com>
---
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
Powered by blists - more mailing lists