staging: rtl8712: Remove unnecessary int typecast
authorSolomon Tan <solomonbstoner@protonmail.ch>
Sun, 17 Apr 2022 16:54:48 +0000 (16:54 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 16:40:19 +0000 (18:40 +0200)
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>
Link: https://lore.kernel.org/r/YlxGTMBsLqdOIrpC@ArchDesktop
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c

index f1e352b..36f6904 100644 (file)
@@ -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;