Skip to content

Commit d1d1a96

Browse files
lwfingerKalle Valo
authored andcommitted
rtlwifi: rtl8188ee: Remove local configuration variable
The configuration variable IS_LITTLE_ENDIAN is replaced by the standard __LITTLE_ENDIAN. In addition, an unused struct is removed. Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
1 parent e53e30b commit d1d1a96

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

  • drivers/net/wireless/realtek/rtlwifi/rtl8188ee

‎drivers/net/wireless/realtek/rtlwifi/rtl8188ee/trx.h‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -560,17 +560,7 @@ static inline void clear_pci_tx_desc_content(__le32 *__pdesc, int _size)
560560
rxmcs == DESC92C_RATE5_5M ||\
561561
rxmcs == DESC92C_RATE11M)
562562

563-
#define IS_LITTLE_ENDIAN 1
564-
565-
struct phy_rx_agc_info_t {
566-
#if IS_LITTLE_ENDIAN
567-
u8 gain:7, trsw:1;
568-
#else
569-
u8 trsw:1, gain:7;
570-
#endif
571-
};
572563
struct phy_status_rpt {
573-
struct phy_rx_agc_info_t path_agc[2];
574564
u8 ch_corr[2];
575565
u8 cck_sig_qual_ofdm_pwdb_all;
576566
u8 cck_agc_rpt_ofdm_cfosho_a;
@@ -587,15 +577,15 @@ struct phy_status_rpt {
587577
u8 stream_target_csi[2];
588578
u8 sig_evm;
589579
u8 rsvd_3;
590-
#if IS_LITTLE_ENDIAN
580+
#if defined(__LITTLE_ENDIAN)
591581
u8 antsel_rx_keep_2:1; /*ex_intf_flg:1;*/
592582
u8 sgi_en:1;
593583
u8 rxsc:2;
594584
u8 idle_long:1;
595585
u8 r_ant_train_en:1;
596586
u8 ant_sel_b:1;
597587
u8 ant_sel:1;
598-
#else /* _BIG_ENDIAN_ */
588+
#else /* __BIG_ENDIAN */
599589
u8 ant_sel:1;
600590
u8 ant_sel_b:1;
601591
u8 r_ant_train_en:1;

0 commit comments

Comments
 (0)