Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: match parentheses alignment

Match next line with open parentheses by adding tabs/spaces
to conform with Linux kernel coding style.
Reported by checkpatch.

Signed-off-by: Zhansaya Bagdauletkyzy <zhansayabagdaulet@gmail.com>
Link: https://lore.kernel.org/r/664f324330611a78e184a203ece38d4facc9d791.1617697237.git.zhansayabagdaulet@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Zhansaya Bagdauletkyzy and committed by
Greg Kroah-Hartman
7b2ede0b 59184278

+16 -16
+11 -11
drivers/staging/rtl8712/rtl871x_recv.c
··· 69 69 for (i = 0; i < NR_RECVFRAME; i++) { 70 70 INIT_LIST_HEAD(&(precvframe->u.list)); 71 71 list_add_tail(&(precvframe->u.list), 72 - &(precvpriv->free_recv_queue.queue)); 72 + &(precvpriv->free_recv_queue.queue)); 73 73 r8712_os_recv_resource_alloc(padapter, precvframe); 74 74 precvframe->u.hdr.adapter = padapter; 75 75 precvframe++; ··· 175 175 if (bmic_err) { 176 176 if (prxattrib->bdecrypted) 177 177 r8712_handle_tkip_mic_err(adapter, 178 - (u8)is_multicast_ether_addr(prxattrib->ra)); 178 + (u8)is_multicast_ether_addr(prxattrib->ra)); 179 179 res = _FAIL; 180 180 } else { 181 181 /* mic checked ok */ ··· 191 191 192 192 /* decrypt and set the ivlen,icvlen of the recv_frame */ 193 193 union recv_frame *r8712_decryptor(struct _adapter *padapter, 194 - union recv_frame *precv_frame) 194 + union recv_frame *precv_frame) 195 195 { 196 196 struct rx_pkt_attrib *prxattrib = &precv_frame->u.hdr.attrib; 197 197 struct security_priv *psecuritypriv = &padapter->securitypriv; 198 198 union recv_frame *return_packet = precv_frame; 199 199 200 200 if ((prxattrib->encrypt > 0) && ((prxattrib->bdecrypted == 0) || 201 - psecuritypriv->sw_decrypt)) { 201 + psecuritypriv->sw_decrypt)) { 202 202 psecuritypriv->hw_decrypted = false; 203 203 switch (prxattrib->encrypt) { 204 204 case _WEP40_: ··· 252 252 } else { 253 253 /*free this frame*/ 254 254 r8712_free_recvframe(precv_frame, 255 - &adapter->recvpriv.free_recv_queue); 255 + &adapter->recvpriv.free_recv_queue); 256 256 prtnframe = NULL; 257 257 } 258 258 } else { ··· 274 274 } 275 275 276 276 static sint recv_decache(union recv_frame *precv_frame, u8 bretry, 277 - struct stainfo_rxcache *prxcache) 277 + struct stainfo_rxcache *prxcache) 278 278 { 279 279 sint tid = precv_frame->u.hdr.attrib.priority; 280 280 u16 seq_ctrl = ((precv_frame->u.hdr.attrib.seq_num & 0xffff) << 4) | ··· 393 393 return _FAIL; 394 394 /* check BSSID */ 395 395 if (is_zero_ether_addr(pattrib->bssid) || 396 - is_zero_ether_addr(mybssid) || 396 + is_zero_ether_addr(mybssid) || 397 397 (memcmp(pattrib->bssid, mybssid, ETH_ALEN))) 398 398 return _FAIL; 399 399 if (bmcast) ··· 443 443 } 444 444 445 445 static sint validate_recv_ctrl_frame(struct _adapter *adapter, 446 - union recv_frame *precv_frame) 446 + union recv_frame *precv_frame) 447 447 { 448 448 return _FAIL; 449 449 } 450 450 451 451 static sint validate_recv_mgnt_frame(struct _adapter *adapter, 452 - union recv_frame *precv_frame) 452 + union recv_frame *precv_frame) 453 453 { 454 454 return _FAIL; 455 455 } 456 456 457 457 458 458 static sint validate_recv_data_frame(struct _adapter *adapter, 459 - union recv_frame *precv_frame) 459 + union recv_frame *precv_frame) 460 460 { 461 461 int res; 462 462 u8 bretry; ··· 602 602 psnap_type = ptr + pattrib->hdrlen + pattrib->iv_len + SNAP_SIZE; 603 603 /* convert hdr + possible LLC headers into Ethernet header */ 604 604 if ((!memcmp(psnap, (void *)rfc1042_header, SNAP_SIZE) && 605 - (memcmp(psnap_type, (void *)SNAP_ETH_TYPE_IPX, 2)) && 605 + (memcmp(psnap_type, (void *)SNAP_ETH_TYPE_IPX, 2)) && 606 606 (memcmp(psnap_type, (void *)SNAP_ETH_TYPE_APPLETALK_AARP, 2))) || 607 607 !memcmp(psnap, (void *)bridge_tunnel_header, SNAP_SIZE)) { 608 608 /* remove RFC1042 or Bridge-Tunnel encapsulation and
+1 -1
drivers/staging/rtl8712/rtl871x_xmit.h
··· 280 280 void r8712_xmit_bh(struct tasklet_struct *t); 281 281 282 282 void xmitframe_xmitbuf_attach(struct xmit_frame *pxmitframe, 283 - struct xmit_buf *pxmitbuf); 283 + struct xmit_buf *pxmitbuf); 284 284 285 285 #include "rtl8712_xmit.h" 286 286
+4 -4
drivers/staging/rtl8712/xmit_osdep.h
··· 37 37 int r8712_xmit_entry(_pkt *pkt, struct net_device *pnetdev); 38 38 void r8712_SetFilter(struct work_struct *work); 39 39 int r8712_xmit_resource_alloc(struct _adapter *padapter, 40 - struct xmit_buf *pxmitbuf); 40 + struct xmit_buf *pxmitbuf); 41 41 void r8712_xmit_resource_free(struct _adapter *padapter, 42 - struct xmit_buf *pxmitbuf); 42 + struct xmit_buf *pxmitbuf); 43 43 44 44 void r8712_set_qos(struct pkt_file *ppktfile, 45 - struct pkt_attrib *pattrib); 45 + struct pkt_attrib *pattrib); 46 46 void _r8712_open_pktfile(_pkt *pktptr, struct pkt_file *pfile); 47 47 uint _r8712_pktfile_read(struct pkt_file *pfile, u8 *rmem, uint rlen); 48 48 sint r8712_endofpktfile(struct pkt_file *pfile); 49 49 void r8712_xmit_complete(struct _adapter *padapter, 50 - struct xmit_frame *pxframe); 50 + struct xmit_frame *pxframe); 51 51 52 52 #endif