]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
Staging: ks7010: Replace typecast to int
authorWentao Cai <etsai042@gmail.com>
Fri, 1 Mar 2019 07:17:25 +0000 (15:17 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Mar 2019 08:05:01 +0000 (09:05 +0100)
This patch fixes the checkpatch.pl warning:
WARNING: Unnecessary typecast of c90 int constant

Signed-off-by: Wentao Cai <etsai042@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/ks7010/ks_wlan_net.c

index dc5459ae0b51e35f54f027faad4c5e597248db94..3cffc8be6656371f2bf7528dba9b08a2ae29fe56 100644 (file)
@@ -182,7 +182,7 @@ static int ks_wlan_set_freq(struct net_device *dev,
        /* for SLEEP MODE */
        /* If setting by frequency, convert to a channel */
        if ((fwrq->freq.e == 1) &&
-           (fwrq->freq.m >= (int)2.412e8) && (fwrq->freq.m <= (int)2.487e8)) {
+           (fwrq->freq.m >= 241200000) && (fwrq->freq.m <= 248700000)) {
                int f = fwrq->freq.m / 100000;
                int c = 0;