Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0d6b23a4 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman
Browse files

Staging: rtl8723au: Remove unused functions



The functions rtw_get_oper_bw23a and rtw_get_oper_ch23aoffset are never
used anywhere in the kernel. So, remove their definition and prototype.
Grepped to find occurences.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Reviewed-by: default avatarJulian Calaby <julian.calaby@gmail.com>
Acked-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d3120076
Loading
Loading
Loading
Loading
+0 −10
Original line number Original line Diff line number Diff line
@@ -304,21 +304,11 @@ inline void rtw_set_oper_ch23a(struct rtw_adapter *adapter, u8 ch)
	adapter_to_dvobj(adapter)->oper_channel = ch;
	adapter_to_dvobj(adapter)->oper_channel = ch;
}
}


inline u8 rtw_get_oper_bw23a(struct rtw_adapter *adapter)
{
	return adapter_to_dvobj(adapter)->oper_bwmode;
}

inline void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw)
inline void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw)
{
{
	adapter_to_dvobj(adapter)->oper_bwmode = bw;
	adapter_to_dvobj(adapter)->oper_bwmode = bw;
}
}


inline u8 rtw_get_oper_ch23aoffset(struct rtw_adapter *adapter)
{
	return adapter_to_dvobj(adapter)->oper_ch_offset;
}

inline void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset)
inline void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset)
{
{
	adapter_to_dvobj(adapter)->oper_ch_offset = offset;
	adapter_to_dvobj(adapter)->oper_ch_offset = offset;
+0 −2
Original line number Original line Diff line number Diff line
@@ -461,9 +461,7 @@ void Update23aTblForSoftAP(u8 *bssrateset, u32 bssratelen);


u8 rtw_get_oper_ch23a(struct rtw_adapter *adapter);
u8 rtw_get_oper_ch23a(struct rtw_adapter *adapter);
void rtw_set_oper_ch23a(struct rtw_adapter *adapter, u8 ch);
void rtw_set_oper_ch23a(struct rtw_adapter *adapter, u8 ch);
u8 rtw_get_oper_bw23a(struct rtw_adapter *adapter);
void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw);
void rtw_set_oper_bw23a(struct rtw_adapter *adapter, u8 bw);
u8 rtw_get_oper_ch23aoffset(struct rtw_adapter *adapter);
void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset);
void rtw_set_oper_ch23aoffset23a(struct rtw_adapter *adapter, u8 offset);


void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,
void set_channel_bwmode23a(struct rtw_adapter *padapter, unsigned char channel,