mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 01:09:33 -04:00
staging: rtl8192e: rename RxPendingPktList to rx_pending_pkt_list in rx_ts_record struct
Rename RxPendingPktList to rx_pending_pkt_list to silence a checkpatch warning about CamelCase. Signed-off-by: William Durand <will+git@drnd.me> Link: https://lore.kernel.org/r/20210301215335.767-5-will+git@drnd.me Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
57f1e71e1a
commit
bd1b2779db
@@ -45,7 +45,7 @@ struct rx_ts_record {
|
||||
struct ts_common_info ts_common_info;
|
||||
u16 rx_indicate_seq;
|
||||
u16 rx_timeout_indicate_seq;
|
||||
struct list_head RxPendingPktList;
|
||||
struct list_head rx_pending_pkt_list;
|
||||
struct timer_list RxPktPendingTimer;
|
||||
struct ba_record RxAdmittedBARecord;
|
||||
u16 RxLastSeqNum;
|
||||
|
||||
@@ -31,9 +31,9 @@ static void RxPktPendingTimeout(struct timer_list *t)
|
||||
|
||||
spin_lock_irqsave(&(ieee->reorder_spinlock), flags);
|
||||
if (pRxTs->rx_timeout_indicate_seq != 0xffff) {
|
||||
while (!list_empty(&pRxTs->RxPendingPktList)) {
|
||||
while (!list_empty(&pRxTs->rx_pending_pkt_list)) {
|
||||
pReorderEntry = (struct rx_reorder_entry *)
|
||||
list_entry(pRxTs->RxPendingPktList.prev,
|
||||
list_entry(pRxTs->rx_pending_pkt_list.prev,
|
||||
struct rx_reorder_entry, List);
|
||||
if (index == 0)
|
||||
pRxTs->rx_indicate_seq = pReorderEntry->SeqNum;
|
||||
@@ -167,7 +167,7 @@ void TSInitialize(struct rtllib_device *ieee)
|
||||
INIT_LIST_HEAD(&ieee->Rx_TS_Unused_List);
|
||||
for (count = 0; count < TOTAL_TS_NUM; count++) {
|
||||
pRxTS->num = count;
|
||||
INIT_LIST_HEAD(&pRxTS->RxPendingPktList);
|
||||
INIT_LIST_HEAD(&pRxTS->rx_pending_pkt_list);
|
||||
|
||||
timer_setup(&pRxTS->ts_common_info.SetupTimer, TsSetupTimeOut,
|
||||
0);
|
||||
@@ -408,9 +408,9 @@ static void RemoveTsEntry(struct rtllib_device *ieee,
|
||||
if (timer_pending(&pRxTS->RxPktPendingTimer))
|
||||
del_timer_sync(&pRxTS->RxPktPendingTimer);
|
||||
|
||||
while (!list_empty(&pRxTS->RxPendingPktList)) {
|
||||
while (!list_empty(&pRxTS->rx_pending_pkt_list)) {
|
||||
pRxReorderEntry = (struct rx_reorder_entry *)
|
||||
list_entry(pRxTS->RxPendingPktList.prev,
|
||||
list_entry(pRxTS->rx_pending_pkt_list.prev,
|
||||
struct rx_reorder_entry, List);
|
||||
netdev_dbg(ieee->dev, "%s(): Delete SeqNum %d!\n",
|
||||
__func__, pRxReorderEntry->SeqNum);
|
||||
|
||||
@@ -449,9 +449,9 @@ static int is_duplicate_packet(struct rtllib_device *ieee,
|
||||
static bool AddReorderEntry(struct rx_ts_record *pTS,
|
||||
struct rx_reorder_entry *pReorderEntry)
|
||||
{
|
||||
struct list_head *pList = &pTS->RxPendingPktList;
|
||||
struct list_head *pList = &pTS->rx_pending_pkt_list;
|
||||
|
||||
while (pList->next != &pTS->RxPendingPktList) {
|
||||
while (pList->next != &pTS->rx_pending_pkt_list) {
|
||||
if (SN_LESS(pReorderEntry->SeqNum, ((struct rx_reorder_entry *)
|
||||
list_entry(pList->next, struct rx_reorder_entry,
|
||||
List))->SeqNum))
|
||||
@@ -537,7 +537,7 @@ void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee,
|
||||
u8 RfdCnt = 0;
|
||||
|
||||
del_timer_sync(&pTS->RxPktPendingTimer);
|
||||
while (!list_empty(&pTS->RxPendingPktList)) {
|
||||
while (!list_empty(&pTS->rx_pending_pkt_list)) {
|
||||
if (RfdCnt >= REORDER_WIN_SIZE) {
|
||||
netdev_info(ieee->dev,
|
||||
"-------------->%s() error! RfdCnt >= REORDER_WIN_SIZE\n",
|
||||
@@ -546,7 +546,7 @@ void rtllib_FlushRxTsPendingPkts(struct rtllib_device *ieee,
|
||||
}
|
||||
|
||||
pRxReorderEntry = (struct rx_reorder_entry *)
|
||||
list_entry(pTS->RxPendingPktList.prev,
|
||||
list_entry(pTS->rx_pending_pkt_list.prev,
|
||||
struct rx_reorder_entry, List);
|
||||
netdev_dbg(ieee->dev, "%s(): Indicate SeqNum %d!\n", __func__,
|
||||
pRxReorderEntry->SeqNum);
|
||||
@@ -693,12 +693,12 @@ static void RxReorderIndicatePacket(struct rtllib_device *ieee,
|
||||
}
|
||||
|
||||
/* Check if there is any packet need indicate.*/
|
||||
while (!list_empty(&pTS->RxPendingPktList)) {
|
||||
while (!list_empty(&pTS->rx_pending_pkt_list)) {
|
||||
netdev_dbg(ieee->dev, "%s(): start RREORDER indicate\n",
|
||||
__func__);
|
||||
|
||||
pReorderEntry = (struct rx_reorder_entry *)
|
||||
list_entry(pTS->RxPendingPktList.prev,
|
||||
list_entry(pTS->rx_pending_pkt_list.prev,
|
||||
struct rx_reorder_entry,
|
||||
List);
|
||||
if (SN_LESS(pReorderEntry->SeqNum, pTS->rx_indicate_seq) ||
|
||||
|
||||
Reference in New Issue
Block a user