[PATCH] firmware:Remove unnecessary (void*) conversions

From: yunchuan
Date: Thu Apr 20 2023 - 03:38:17 EST


Pointer variables of void * type do not require type cast.

Signed-off-by: yunchuan <yunchuan@xxxxxxxxxxxx>
---
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