linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] staging: rtl8712: Remove unnecessary int typecast
@ 2022-04-17 16:54 Solomon Tan
  0 siblings, 0 replies; only message in thread
From: Solomon Tan @ 2022-04-17 16:54 UTC (permalink / raw)
  To: linux-kernel, linux-staging, eng.alaamohamedsoliman.am, gregkh,
	florian.c.schilhabel, Larry.Finger

This patch gets rid of the following error from checkpatch.pl:
WARNING: Unnecessary typecast of c90 int constant.

Signed-off-by: Solomon Tan <solomonbstoner@protonmail.ch>
---
 drivers/staging/rtl8712/rtl871x_ioctl_linux.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
index f1e352b7f83e..36f6904d25ab 100644
--- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@ -659,8 +659,8 @@ static int r8711_wx_set_freq(struct net_device *dev,

 /* If setting by frequency, convert to a channel */
 	if ((fwrq->e == 1) &&
-	  (fwrq->m >= (int) 2.412e8) &&
-	  (fwrq->m <= (int) 2.487e8)) {
+	  (fwrq->m >= 241200000) &&
+	  (fwrq->m <= 248700000)) {
 		int f = fwrq->m / 100000;
 		int c = 0;

--
2.35.3



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-04-17 16:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-17 16:54 [PATCH] staging: rtl8712: Remove unnecessary int typecast Solomon Tan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).