Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3513479ybg; Mon, 28 Oct 2019 14:08:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqxUu+kx6QQEaxpKlwxMUZko/Z8hrgxEmPN8yxwIZWH4ZSHSCRS5k1r5Q9BkRKY0O/YxqWr1 X-Received: by 2002:a50:f306:: with SMTP id p6mr9862984edm.284.1572296935136; Mon, 28 Oct 2019 14:08:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572296935; cv=none; d=google.com; s=arc-20160816; b=sn412K6EIYIImzUBWSiQinySyOYlX9BKXQWCcJ0qYvhPfGCJQ49T99HIKWoJ1E8YzD t78AOHv2I+xHfDojffU/VYxeD7m4Q9Ukl8voR+hEULwW1vapoRTTEaARyELX6YXvY0oW oxo4s6GQ2V21Aql6YYSz+dKuldmbgnL6AUKRk0LjjWu9mMgk/lW8UIk23IbqGQW7L4S+ ogFhlrhfBf8zsPkIC3XT5xtYd7s+U0xcJbN0pavuj4uALqcu/wx9nCb0EBi0HYUWc2Lv HMlXfrtLGbaDvcp9ysO0SYQwco2qxBs3dUcA9d/JkWBpIg+gVSKsSRyBenQRBl0VLldj rM1Q== 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=0FV5BQJa/pO//IMI+ZT8jkadIpmBxWA942zfBURnizc=; b=wT3QBfq9/GAEj367+kbCz/cUDr+9PawXnSdmyUzTW/mn/j1UmjJllTHtcwZWhFH69C w41gsX26MNvbl4e/Uxs4+yMHPzCXr5+guK6dx688o5YcIxMF+yCQupubqmKiWDsYnoV+ 9nGVyU1B7JtuFMfq86kDkEqdI94cJPgWXuR9m2QfROLP/JdWIAc0sp7DD0fxVpcaAlI7 OlZXKm3SGYJFIROs4CZHUo9fVwkElVnIM9NEK3ZyN5JF3mIirTQRAhf4uMluvM0xEqaA bka2xMnsLfS0HA2ps5Ya58OoGtQu6YOfxEmxt64YD81/STKNJGbE+mMdk8BHGljWjqgw qIQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=cvFgAelO; 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 i47si8742759eda.91.2019.10.28.14.08.31; Mon, 28 Oct 2019 14:08:55 -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=cvFgAelO; 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 S2390672AbfJ1PP6 (ORCPT + 99 others); Mon, 28 Oct 2019 11:15:58 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:43526 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390665AbfJ1PP6 (ORCPT ); Mon, 28 Oct 2019 11:15:58 -0400 Received: by mail-qk1-f193.google.com with SMTP id a194so8784864qkg.10 for ; Mon, 28 Oct 2019 08:15:57 -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=0FV5BQJa/pO//IMI+ZT8jkadIpmBxWA942zfBURnizc=; b=cvFgAelOwhD77oP34pW6C/TIbj8PtSAhy+4AFLfcQZqbZCBxE3qBGDROsT0Rapje/5 AubWT8QOi5W2ZLDchMUSedGJHRRIbNlD875Ap7avtGtcWF5FxNfu/FxU2GoYsPlgyTvN cKZUFKIu1yS4LKNVxO1+L/vsEVCSFmt9s7/ttfT3yufJAAYn0zN1mDf4ylBXbGq0xDYq cHTHmPV3MvoObnHl4LEpbYFDFAS5B6rxPv9Vur2tsEgr0dng+RbzLNgyhHaaZrrLyfBi z+jHajwTeapS9re7DqIGUJrxHjYte8p38Omppmu0vJCu7E+p0QnxgPgRdO6328I9qnoj lbiw== 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=0FV5BQJa/pO//IMI+ZT8jkadIpmBxWA942zfBURnizc=; b=Rl0her5Clu3SBtiTEp+m3O6dA1IIE8IHkX31MM+8gW1eiHCycqoBX0EicrzXqCaNob Y/Nd+V7wRGMMIFq7xAYh0trKhJhhXWoQyhgdIcUH4uA/vTkSfwRWDZWl2qJWKcQbhd7o AYQ7M8wxiZpNVsFRVRCFley1Q2wv7o2ntH4mxja+9Cc+Ae1niPJZ9G8Um/F41+Ug1lXK zlndWg3P0/JPtyuXaLUC+HH0oHB3ELUrqSwIM5KxdckQExhg3iSX2VcXWOKu84meSZWi Gkx2L5fvU9HF0HOrVPW9w/rYsxQYmn7QClDVtNFkmmQ78q5MglSa4IgWID+By+pL1cqA GQ9g== X-Gm-Message-State: APjAAAUJmcwnHBLuts9HI4eIpQ8/fyXP0gmEsz9894eBPwElGY9EuIhx 7O+LhhTPzRvfgXR0NG2ZgrqfQUY73mAV1A== X-Received: by 2002:ae9:c307:: with SMTP id n7mr4110015qkg.185.1572275757080; Mon, 28 Oct 2019 08:15:57 -0700 (PDT) Received: from cristiane-Inspiron-5420 ([131.100.148.220]) by smtp.gmail.com with ESMTPSA id 187sm6216703qkk.103.2019.10.28.08.15.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Oct 2019 08:15:56 -0700 (PDT) Date: Mon, 28 Oct 2019 12:15:52 -0300 From: Cristiane Naves To: outreachy-kernel@googlegroups.com Cc: Julia Lawall , Florian Schilhabel , Greg Kroah-Hartman , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Larry Finger Subject: [PATCH v3 1/2] staging: rtl8712: Fix Alignment of open parenthesis Message-ID: <158960d90adff42169bb7ce968a4082bf3e73387.1572273794.git.cristianenavescardoso09@gmail.com> 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 | 36 +++++++++++++++++----------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c index af12c16..304d031 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,26 +379,26 @@ 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) && - eth_type != ETH_P_AARP && eth_type != ETH_P_IPX) || - !memcmp(sub_skb->data, bridge_tunnel_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 * replace EtherType */ 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; @@ -530,7 +530,7 @@ int r8712_recv_indicatepkts_in_order(struct _adapter *padapter, plist = plist->next; list_del_init(&(prframe->u.hdr.list)); if (SN_EQUAL(preorder_ctrl->indicate_seq, - pattrib->seq_num)) + pattrib->seq_num)) preorder_ctrl->indicate_seq = (preorder_ctrl->indicate_seq + 1) % 4096; /*indicate this recv_frame*/ @@ -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