[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20230420073751.1031944-1-yunchuan@nfschina.com>
Date: Thu, 20 Apr 2023 15:37:51 +0800
From: yunchuan <yunchuan@...china.com>
To: kabel@...nel.org
Cc: linux-kernel@...r.kernel.org, yunchuan <yunchuan@...china.com>
Subject: [PATCH] firmware:Remove unnecessary (void*) conversions
Pointer variables of void * type do not require type cast.
Signed-off-by: yunchuan <yunchuan@...china.com>
---
drivers/firmware/turris-mox-rwtm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/firmware/turris-mox-rwtm.c b/drivers/firmware/turris-mox-rwtm.c
index 6ea5789a89e2..af2fa620e6bc 100644
--- a/drivers/firmware/turris-mox-rwtm.c
+++ b/drivers/firmware/turris-mox-rwtm.c
@@ -283,7 +283,7 @@ static int check_get_random_support(struct mox_rwtm *rwtm)
static int mox_hwrng_read(struct hwrng *rng, void *data, size_t max, bool wait)
{
- struct mox_rwtm *rwtm = (struct mox_rwtm *) rng->priv;
+ struct mox_rwtm *rwtm = rng->priv;
struct armada_37xx_rwtm_tx_msg msg;
int ret;
--
2.30.2
Powered by blists - more mailing lists