Skip to contentSkip to conversation

Staging: ks7010: Replace typecast to int

PATCH New Wentao Cai 1 participant 1 message Mar 1, 2019 Staging

lore
Share & tools
lore

Wentao Cai

author
#0 lore raw

PATCH 1/1 Staging: ks7010: Replace typecast to int

This patch fixes the checkpatch.pl warning:
WARNING: Unnecessary typecast of c90 int constant

---
 drivers/staging/ks7010/ks_wlan_net.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/ks7010/ks_wlan_net.c +1 -1
index dc5459ae0b51..3cffc8be6656 100644
@@ -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;
 
Signature · 1 line
2.17.1