]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Staging: rtl8188eu: Remove function rtw_freq2ch
authorBhumika Goyal <bhumirks@gmail.com>
Fri, 11 Mar 2016 10:23:56 +0000 (15:53 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
Remove function rtw_freq2ch as it is never used anywhere in the kernel.
Also, remove the function prototype.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_rf.c
drivers/staging/rtl8188eu/include/rtw_rf.h

index 6983c572b358e356f856ffeed3c05bf8cc54da05..4ad2d8f63acfe9aa767a8a90e8f0785d5e37a83f 100644 (file)
@@ -70,20 +70,3 @@ u32 rtw_ch2freq(u32 channel)
 
        return freq;
 }
-
-u32 rtw_freq2ch(u32 freq)
-{
-       u8      i;
-       u32     ch = 0;
-
-       for (i = 0; i < ch_freq_map_num; i++) {
-               if (freq == ch_freq_map[i].frequency) {
-                       ch = ch_freq_map[i].channel;
-                               break;
-               }
-       }
-       if (i == ch_freq_map_num)
-               ch = 1;
-
-       return ch;
-}
index 2df88370de59d84a917f9cf59114139b364796f6..35f61be12acd695141bf5ff25dbd875e1d86839d 100644 (file)
@@ -140,7 +140,6 @@ enum rt_rf_type_def {
 };
 
 u32 rtw_ch2freq(u32 ch);
-u32 rtw_freq2ch(u32 freq);
 
 
 #endif /* _RTL8711_RF_H_ */