Commit a78e4b1f authored by Nishka Dasgupta's avatar Nishka Dasgupta Committed by Greg Kroah-Hartman

staging: rtl8712: recv_linux.c: Remove leading p from variable names

Remove leading p from the following pointer variable names:
- padapter
- pmlmepriv
- precv_frame
- precvpriv
- pfree_recv_queue
- pattrib.
Issue found with Coccinelle
Signed-off-by: default avatarNishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 286570fb
...@@ -72,11 +72,11 @@ int r8712_os_recvbuf_resource_free(struct _adapter *padapter, ...@@ -72,11 +72,11 @@ int r8712_os_recvbuf_resource_free(struct _adapter *padapter,
return _SUCCESS; return _SUCCESS;
} }
void r8712_handle_tkip_mic_err(struct _adapter *padapter, u8 bgroup) void r8712_handle_tkip_mic_err(struct _adapter *adapter, u8 bgroup)
{ {
union iwreq_data wrqu; union iwreq_data wrqu;
struct iw_michaelmicfailure ev; struct iw_michaelmicfailure ev;
struct mlme_priv *pmlmepriv = &padapter->mlmepriv; struct mlme_priv *mlmepriv = &adapter->mlmepriv;
memset(&ev, 0x00, sizeof(ev)); memset(&ev, 0x00, sizeof(ev));
if (bgroup) if (bgroup)
...@@ -84,54 +84,54 @@ void r8712_handle_tkip_mic_err(struct _adapter *padapter, u8 bgroup) ...@@ -84,54 +84,54 @@ void r8712_handle_tkip_mic_err(struct _adapter *padapter, u8 bgroup)
else else
ev.flags |= IW_MICFAILURE_PAIRWISE; ev.flags |= IW_MICFAILURE_PAIRWISE;
ev.src_addr.sa_family = ARPHRD_ETHER; ev.src_addr.sa_family = ARPHRD_ETHER;
ether_addr_copy(ev.src_addr.sa_data, &pmlmepriv->assoc_bssid[0]); ether_addr_copy(ev.src_addr.sa_data, &mlmepriv->assoc_bssid[0]);
memset(&wrqu, 0x00, sizeof(wrqu)); memset(&wrqu, 0x00, sizeof(wrqu));
wrqu.data.length = sizeof(ev); wrqu.data.length = sizeof(ev);
wireless_send_event(padapter->pnetdev, IWEVMICHAELMICFAILURE, &wrqu, wireless_send_event(adapter->pnetdev, IWEVMICHAELMICFAILURE, &wrqu,
(char *)&ev); (char *)&ev);
} }
void r8712_recv_indicatepkt(struct _adapter *padapter, void r8712_recv_indicatepkt(struct _adapter *adapter,
union recv_frame *precv_frame) union recv_frame *recvframe)
{ {
struct recv_priv *precvpriv; struct recv_priv *recvpriv;
struct __queue *pfree_recv_queue; struct __queue *free_recv_queue;
_pkt *skb; _pkt *skb;
struct rx_pkt_attrib *pattrib = &precv_frame->u.hdr.attrib; struct rx_pkt_attrib *attrib = &recvframe->u.hdr.attrib;
precvpriv = &padapter->recvpriv; recvpriv = &adapter->recvpriv;
pfree_recv_queue = &precvpriv->free_recv_queue; free_recv_queue = &recvpriv->free_recv_queue;
skb = precv_frame->u.hdr.pkt; skb = recvframe->u.hdr.pkt;
if (!skb) if (!skb)
goto _recv_indicatepkt_drop; goto _recv_indicatepkt_drop;
skb->data = precv_frame->u.hdr.rx_data; skb->data = recvframe->u.hdr.rx_data;
skb->len = precv_frame->u.hdr.len; skb->len = recvframe->u.hdr.len;
skb_set_tail_pointer(skb, skb->len); skb_set_tail_pointer(skb, skb->len);
if ((pattrib->tcpchk_valid == 1) && (pattrib->tcp_chkrpt == 1)) if ((attrib->tcpchk_valid == 1) && (attrib->tcp_chkrpt == 1))
skb->ip_summed = CHECKSUM_UNNECESSARY; skb->ip_summed = CHECKSUM_UNNECESSARY;
else else
skb->ip_summed = CHECKSUM_NONE; skb->ip_summed = CHECKSUM_NONE;
skb->dev = padapter->pnetdev; skb->dev = adapter->pnetdev;
skb->protocol = eth_type_trans(skb, padapter->pnetdev); skb->protocol = eth_type_trans(skb, adapter->pnetdev);
netif_rx(skb); netif_rx(skb);
precv_frame->u.hdr.pkt = NULL; /* pointers to NULL before recvframe->u.hdr.pkt = NULL; /* pointers to NULL before
* r8712_free_recvframe() * r8712_free_recvframe()
*/ */
r8712_free_recvframe(precv_frame, pfree_recv_queue); r8712_free_recvframe(recvframe, free_recv_queue);
return; return;
_recv_indicatepkt_drop: _recv_indicatepkt_drop:
/*enqueue back to free_recv_queue*/ /*enqueue back to free_recv_queue*/
if (precv_frame) if (recvframe)
r8712_free_recvframe(precv_frame, pfree_recv_queue); r8712_free_recvframe(recvframe, free_recv_queue);
precvpriv->rx_drop++; recvpriv->rx_drop++;
} }
static void _r8712_reordering_ctrl_timeout_handler (struct timer_list *t) static void _r8712_reordering_ctrl_timeout_handler (struct timer_list *t)
{ {
struct recv_reorder_ctrl *preorder_ctrl = struct recv_reorder_ctrl *reorder_ctrl =
from_timer(preorder_ctrl, t, reordering_ctrl_timer); from_timer(reorder_ctrl, t, reordering_ctrl_timer);
r8712_reordering_ctrl_timeout_handler(preorder_ctrl); r8712_reordering_ctrl_timeout_handler(reorder_ctrl);
} }
void r8712_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl) void r8712_init_recv_timer(struct recv_reorder_ctrl *preorder_ctrl)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment