[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20190806013329.28574-1-joseespiriki@gmail.com>
Date: Mon, 5 Aug 2019 22:33:29 -0300
From: Jose Carlos Cazarin Filho <joseespiriki@...il.com>
To: Larry.Finger@...inger.net, florian.c.schilhabel@...glemail.com,
gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
linux-kernel@...r.kernel.org, lkcamp@...ts.libreplanetbr.org
Subject: [PATCH] rtl8712: rtl871x_ioctl_linux.c: fix unnecessary typecast
Fix checkpath warning:
WARNING: Unnecessary typecast of c90 int constant
Signed-off-by: Jose Carlos Cazarin Filho <joseespiriki@...il.com>
---
Hello all!
This is my first commit to the Linux Kernel, I'm doing this to learn and be able
to contribute more in the future
Peace all!
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 944336e0d..da371072e 100644
--- a/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
+++ b/drivers/staging/rtl8712/rtl871x_ioctl_linux.c
@@ -665,8 +665,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 >= 2.412e8) &&
+ (fwrq->m <= 2.487e8)) {
int f = fwrq->m / 100000;
int c = 0;
--
2.17.1
Powered by blists - more mailing lists