public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] firmware:Remove unnecessary (void*) conversions
@ 2023-04-20  7:37 yunchuan
  2023-04-20 10:33 ` Marek Behún
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: yunchuan @ 2023-04-20  7:37 UTC (permalink / raw)
  To: kabel; +Cc: linux-kernel, yunchuan

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

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


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-04-21  7:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-20  7:37 [PATCH] firmware:Remove unnecessary (void*) conversions yunchuan
2023-04-20 10:33 ` Marek Behún
2023-04-20 11:49 ` kernel test robot
2023-04-21  5:23   ` yunchuan
2023-04-21  1:09 ` kernel test robot
2023-04-21  7:22 ` Geert Uytterhoeven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox