All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] staging: vt6655: remove unnecessary type cast
@ 2022-05-28 20:28 Nam Cao
  2022-05-30  7:33 ` Dan Carpenter
  0 siblings, 1 reply; 3+ messages in thread
From: Nam Cao @ 2022-05-28 20:28 UTC (permalink / raw)
  To: gregkh; +Cc: forest, linux-kernel, linux-staging

Remove le64_to_cpu(), as the type is already u64, as reported by sparse:
drivers/staging/vt6655/card.c:758:16: warning: cast to restricted __le64

Signed-off-by: Nam Cao <namcaov@gmail.com>
---
 drivers/staging/vt6655/card.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/vt6655/card.c b/drivers/staging/vt6655/card.c
index 2cde0082fc03..852300c59980 100644
--- a/drivers/staging/vt6655/card.c
+++ b/drivers/staging/vt6655/card.c
@@ -755,7 +755,7 @@ u64 vt6655_get_current_tsf(struct vnt_private *priv)
 		return 0;
 	low = ioread32(iobase + MAC_REG_TSFCNTR);
 	high = ioread32(iobase + MAC_REG_TSFCNTR + 4);
-	return le64_to_cpu(low + ((u64)high << 32));
+	return low + ((u64)high << 32);
 }
 
 /*
-- 
2.25.1


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

end of thread, other threads:[~2022-05-30  7:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-28 20:28 [PATCH] staging: vt6655: remove unnecessary type cast Nam Cao
2022-05-30  7:33 ` Dan Carpenter
2022-05-30  7:40   ` Nam Cao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.