Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1125575ybg; Sat, 26 Oct 2019 13:29:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqyzwxhnqP7miyXdH6wk4Lsd144z8xNfdHFW/TZyE0q36zhyn3O5FwICeV8uRZcdmmDSgT3D X-Received: by 2002:a17:906:6d87:: with SMTP id h7mr9771031ejt.4.1572121743754; Sat, 26 Oct 2019 13:29:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572121743; cv=none; d=google.com; s=arc-20160816; b=SkNwzrc+SIfLkTDpMXlGftATP/3B1vh2uJNrdTXllCUFw6S1bG9vaQvfjbC2p9Lmtz hTI0z1sBV+nRwj42OL7TGQIoVsHoJYpc2GnjIdrO5S0V1qTVnt9RAoo2IgwiAmqNG3eQ I80T+hK4OoIhqWiP5xTOYdm5DXzfORoKPE4MY4YGjrS2eGO9m+J+HbCuzewfsqly07Jl SalVCqMD9A2Eyc/rJsdmF4KRIjZMe3QgpFXFDEcVkqJWrH+M6WOVL7VL8jKC+3Q5if+3 ee8VaPHVEEUUB5doQnRtnMMkomAr5PXJ1Hea9giNFi6NEehvz4UwJ4kWnOynfuiSuscm BPGA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=yx6Awz2IKlaX/UU/stsvXaWgodHP34R/qQ1ioU24SwQ=; b=YJ++haPhIdmt0rtMAh+Mg9DqHh5NRlpXUKJ36bEqw5cxnivD8uEObSkSOIgEkZ4VkB JJT04iS7X9iYSaLuTAKxSzSh3SKE3c8Nncj3tlNPoSLz9XF1/902YJ3iiA0YnkWZHmAt CkaO7lfoZ5SnyK/v/vOjtE3l9BWkLOWw8xTZxP+mk2ozsjf8/JwdIjCg58XYKyI9A+Fn 7N6U2D4GuoRxIcdP626RKDI4AUlzvcYbyZ/H7n02Zij6rlku/HiP/3hk4WkFMPvnQFJ2 kk8PFRj/qi7+7I8EX8HXuUf2FiCg+l3FgqrXvqYEc99mCl6mgxXW3kfHQLV9Zuz+MCO+ pB+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gRlciENf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n4si3534122ejj.132.2019.10.26.13.28.39; Sat, 26 Oct 2019 13:29:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=gRlciENf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726539AbfJZU2A (ORCPT + 99 others); Sat, 26 Oct 2019 16:28:00 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:40561 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726422AbfJZU2A (ORCPT ); Sat, 26 Oct 2019 16:28:00 -0400 Received: by mail-qt1-f196.google.com with SMTP id o49so8649763qta.7 for ; Sat, 26 Oct 2019 13:27:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=yx6Awz2IKlaX/UU/stsvXaWgodHP34R/qQ1ioU24SwQ=; b=gRlciENfE7dB24CJ1rfqSgjJze87Zo4V8lt5NhzuS/S0h8op+o5t/exaRDdOsBocv1 zKDO4hZjLT0difaOw5S5fVgRXLoqr0iVZrb/9a8zzzALl1acS0cc4TGFcCVNyUo4cLiZ Y6642VNr8PBJTu9Oo50x4uCL3LvAj6gljWA2kVl/KDWRZnaqo4JC6X1rVq+6LsEtNPbX ANv2qugAmXOvBBmqSezgG0RFWDNEvUfVPPUJfJyn3U5qvSLUKot/86LUu+sNukrjiStM 6D0VxolHyQsDTWupGBWvFCfya6UpolzvmIih8bKuykS5UD6gkB46e3JfHaT22HeLf3/I 3wlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=yx6Awz2IKlaX/UU/stsvXaWgodHP34R/qQ1ioU24SwQ=; b=KsW9sFUJ9FPpAY/f8YpR6fOeG7M6kCyJ5HDhEQWDd6uWkpUdBYp/mBD+m4Js1cSwtX FUYrjaegkXPfXce3CsQyfd+dFjBTz3rQwExLiXNZvKx+uhsGpoFlXifwL8iwXTSrFGKj Ur4PpVdOqmtKw0cPb5j0Lf9/gnRFh15gxAKG7bQ7VfKuz8C7KDjKCqBbUx0ZksKZ2eK6 HvDnGORmXdaFtVtQKGrxeF1u1F8FuAO4+HutbkANnWzk34YT1+wxiiOLAKG5HgD0OoXx enOwx+rECv4BhRcqbzgK4qjLDkE1/xRKInPb1fQAfio2J5pSlmPe3oB8WI6GDe059nQC IgQw== X-Gm-Message-State: APjAAAWxO8EkHsuJhLF8mvwR+uOIZeeZfOTaQHHx6SrqP2bCOX18Dmco YHTymJaEAuJN0R2KV0tfJDA= X-Received: by 2002:ac8:65c9:: with SMTP id t9mr4685261qto.329.1572121678697; Sat, 26 Oct 2019 13:27:58 -0700 (PDT) Received: from cristiane-Inspiron-5420 ([131.100.148.220]) by smtp.gmail.com with ESMTPSA id o67sm3057894qkf.8.2019.10.26.13.27.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Oct 2019 13:27:58 -0700 (PDT) Date: Sat, 26 Oct 2019 17:27:54 -0300 From: Cristiane Naves To: outreachy-kernel@googlegroups.com Cc: Larry Finger , Florian Schilhabel , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 1/3] staging: rtl8712: Fix Alignment of open parenthesis Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix alignment should match open parenthesis. Issue found by checkpatch. Signed-off-by: Cristiane Naves --- drivers/staging/rtl8712/rtl8712_recv.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c index af12c16..12a3c64 100644 --- a/drivers/staging/rtl8712/rtl8712_recv.c +++ b/drivers/staging/rtl8712/rtl8712_recv.c @@ -61,13 +61,13 @@ void r8712_init_recv_priv(struct recv_priv *precvpriv, precvbuf->ref_cnt = 0; precvbuf->adapter = padapter; list_add_tail(&precvbuf->list, - &(precvpriv->free_recv_buf_queue.queue)); + &(precvpriv->free_recv_buf_queue.queue)); precvbuf++; } precvpriv->free_recv_buf_queue_cnt = NR_RECVBUFF; tasklet_init(&precvpriv->recv_tasklet, - (void(*)(unsigned long))recv_tasklet, - (unsigned long)padapter); + (void(*)(unsigned long))recv_tasklet, + (unsigned long)padapter); skb_queue_head_init(&precvpriv->rx_skb_queue); skb_queue_head_init(&precvpriv->free_recv_skb_queue); @@ -140,7 +140,7 @@ void r8712_free_recvframe(union recv_frame *precvframe, } static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib, - struct recv_stat *prxstat) + struct recv_stat *prxstat) { u16 drvinfo_sz; @@ -177,7 +177,7 @@ static void update_recvframe_attrib_from_recvstat(struct rx_pkt_attrib *pattrib, /*perform defrag*/ static union recv_frame *recvframe_defrag(struct _adapter *adapter, - struct __queue *defrag_q) + struct __queue *defrag_q) { struct list_head *plist, *phead; u8 wlanhdr_offset; @@ -379,7 +379,7 @@ static void amsdu_to_msdu(struct _adapter *padapter, union recv_frame *prframe) /* convert hdr + possible LLC headers into Ethernet header */ eth_type = (sub_skb->data[6] << 8) | sub_skb->data[7]; if (sub_skb->len >= 8 && - ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && + ((!memcmp(sub_skb->data, rfc1042_header, SNAP_SIZE) && eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || !memcmp(sub_skb->data, bridge_tunnel_header, SNAP_SIZE))) { /* remove RFC1042 or Bridge-Tunnel encapsulation and @@ -387,18 +387,18 @@ static void amsdu_to_msdu(struct _adapter *padapter, union recv_frame *prframe) */ skb_pull(sub_skb, SNAP_SIZE); memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->src, - ETH_ALEN); + ETH_ALEN); memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->dst, - ETH_ALEN); + ETH_ALEN); } else { __be16 len; /* Leave Ethernet header part of hdr and full payload */ len = htons(sub_skb->len); memcpy(skb_push(sub_skb, 2), &len, 2); memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->src, - ETH_ALEN); + ETH_ALEN); memcpy(skb_push(sub_skb, ETH_ALEN), pattrib->dst, - ETH_ALEN); + ETH_ALEN); } /* Indicate the packets to upper layer */ if (sub_skb) { @@ -472,7 +472,7 @@ static int check_indicate_seq(struct recv_reorder_ctrl *preorder_ctrl, } static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, - union recv_frame *prframe) + union recv_frame *prframe) { struct list_head *phead, *plist; union recv_frame *pnextrframe; @@ -499,8 +499,8 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, } int r8712_recv_indicatepkts_in_order(struct _adapter *padapter, - struct recv_reorder_ctrl *preorder_ctrl, - int bforced) + struct recv_reorder_ctrl *preorder_ctrl, + int bforced) { struct list_head *phead, *plist; union recv_frame *prframe; @@ -555,7 +555,7 @@ int r8712_recv_indicatepkts_in_order(struct _adapter *padapter, } static int recv_indicatepkt_reorder(struct _adapter *padapter, - union recv_frame *prframe) + union recv_frame *prframe) { unsigned long irql; struct rx_pkt_attrib *pattrib = &prframe->u.hdr.attrib; @@ -624,7 +624,7 @@ void r8712_reordering_ctrl_timeout_handler(void *pcontext) } static int r8712_process_recv_indicatepkts(struct _adapter *padapter, - union recv_frame *prframe) + union recv_frame *prframe) { int retval = _SUCCESS; struct mlme_priv *pmlmepriv = &padapter->mlmepriv; -- 2.7.4