Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp3452473pxb; Mon, 4 Apr 2022 17:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwYwMXCAnykyEeReQ8Pw/ahbUQNtiYDOjAf/FxiQBpFHGXO6Adcn2+oB0cd4+hRA1UNI1do X-Received: by 2002:a05:6a00:1581:b0:4fa:e6d4:c3e6 with SMTP id u1-20020a056a00158100b004fae6d4c3e6mr689445pfk.84.1649118387597; Mon, 04 Apr 2022 17:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649118387; cv=none; d=google.com; s=arc-20160816; b=GJXLdW3c8BbbcqdLWSaveD/2WDnMpuArTtlFq9WdgJLs+zBiZA+oQd3GmMxIHJvw0K QauMSE/quN2Kec5pEqyv29cHnYcK3OdXmF40H/jsHLE+Fc0Zu1I/HUQmnaVlCL8GBDYX TAqxOByS10/pJDDiwpB/S1ooOLToEaDUuEazaXb0JfhLu4fdKmjd6hahql6TtxsDHt1j Ltw36ndwBfvZurHVwDh1ThkSWIgEs6rQoH79w0WQK2LgFSCESK2uJ+lpgr7njIEG7ImV SgYQzjGpg4ydmvU77dN9OeRyV/Fffn+oRH3eP3FMHvx9i+nWwyYNEZtCjpuDGn1OvPmc T1Kw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=6bFlDiB7Yl+vEk/1oUNkeFuM8bNkIWz6zYHUTpxecM0=; b=Tk+tAuwF1CjNvXMzKBGRY4Nmgz0EuhQL/lLtFz9SnW0VmP3/je9Y/hUY1RMhIxNW1d U+8oFDmqrMzSDYluGRJsTy9pj3PSzq5qeHFMO9qe63gZlrV4Jg8RqUriveb+wxxt5WOY Co0F+o5K06PRReryIgOw3JA0lcFcQTBpVcTEojrfgtprS81qt3ZDgWHEb4bmt+9R1/Gp 1o1KnSuJj0nfjP8NulerJMa1Bchqd3aMHYwx2G1WXlp5anowPey0rn+1e1l/IhBwW7Sl ikSC+o12R4WHznyrIFGPDtWF3ysue1lyY26ivjld92pdDSa5mDSNx6vblwSWkG7si2B8 y3SA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jqBvCJw3; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id h11-20020a170902704b00b001569bf09533si4899017plt.251.2022.04.04.17.26.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 17:26:27 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=jqBvCJw3; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 822567EA2D; Mon, 4 Apr 2022 16:48:57 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1382756AbiDDWKK (ORCPT + 99 others); Mon, 4 Apr 2022 18:10:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42312 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1381130AbiDDVW3 (ORCPT ); Mon, 4 Apr 2022 17:22:29 -0400 Received: from mail-wm1-x32b.google.com (mail-wm1-x32b.google.com [IPv6:2a00:1450:4864:20::32b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C323727FC0 for ; Mon, 4 Apr 2022 14:20:18 -0700 (PDT) Received: by mail-wm1-x32b.google.com with SMTP id n38-20020a05600c502600b0038e4a0fc5easo363209wmr.3 for ; Mon, 04 Apr 2022 14:20:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6bFlDiB7Yl+vEk/1oUNkeFuM8bNkIWz6zYHUTpxecM0=; b=jqBvCJw3e9Zy0AXxEU4UbP/3TXTppzsBxqSvjlzePS9sPBZfoVNut7dgKFSTHqfKAo ohLFl4S6XUZjvlqZYTb4SuIL4PrLMQhKKh9pgp6Rt1ClFd8J/gbnag3J5IY6BXcqs0DT 59BfddhoMjej4Mow31ayuT7L42clo/9iQGAFlqWuT6XJqN1KXbJ9aU1OFXFW/Hvd+2sl Y9IDp11lyhXRm2dF2KwoHN424Miga/YyYvkr7nvBGE+RlrQXtJlWvU1UVbeVkMitgh4g afl8mBeYDl8Glx7DxJt6jyx/zT796Yyfc50tTbkfclY2/btnH2OsCRd0R4LBK1aPbLv0 l7uw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=6bFlDiB7Yl+vEk/1oUNkeFuM8bNkIWz6zYHUTpxecM0=; b=wJlUzBStsDKsPg6ayhMeDx9aqk4ODhC4YbiIf/HFWTcIRbRGdLwURIA0dOV+KT+Yba lZhTy4R+X/ou7HwUcvzMmlRm8ql2Pvmtzh8t0ZjD51y43Wn7gf+xBk3WON+zjJJr9AOa NPQy+gh0S+nefWWEtwcdnTAw30JSO7lw9gbDwSvQwHMY6AsOtvrLYKyPw13uLQYG7t4e sxFJDkGGoA1Hr376oc9bXbvKMjUGMi9kNFQX0DRYgteLdAgi0jp1ztdjfRzS5LdOohks SpgnyLJiv+kga7HA5VdvL5QdHCKvpPAHiShd0mhaby1IjqX4+TqfuvJwA+0qugDFAS/F Ylrw== X-Gm-Message-State: AOAM531sX5+faL5AplsSWDqSuKUd01xaqWxhvLywb4TXGp79HXbtNkIX LyjBBIDkuP7mv7hfvjCuUbwYj/rvajE= X-Received: by 2002:a1c:f719:0:b0:381:ba:5247 with SMTP id v25-20020a1cf719000000b0038100ba5247mr23415wmh.183.1649107185757; Mon, 04 Apr 2022 14:19:45 -0700 (PDT) Received: from alaa-emad ([41.42.174.117]) by smtp.gmail.com with ESMTPSA id e13-20020a05600c4e4d00b0038e44e316c1sm132294wmq.6.2022.04.04.14.19.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Apr 2022 14:19:44 -0700 (PDT) From: Alaa Mohamed To: outreachy@lists.linux.dev Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, gregkh@linuxfoundation.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, eng.alaamohamedsoliman.am@gmail.com Subject: [PATCH] staging: rtl8712: remove Unnecessary parentheses Date: Mon, 4 Apr 2022 23:19:42 +0200 Message-Id: <20220404211942.11446-1-eng.alaamohamedsoliman.am@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Reported by checkpatch: CHECK: Unnecessary parentheses Signed-off-by: Alaa Mohamed --- drivers/staging/rtl8712/rtl8712_recv.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/staging/rtl8712/rtl8712_recv.c b/drivers/staging/rtl8712/rtl8712_recv.c index 0ffb30f1af7e..7f1fdd058551 100644 --- a/drivers/staging/rtl8712/rtl8712_recv.c +++ b/drivers/staging/rtl8712/rtl8712_recv.c @@ -56,7 +56,7 @@ 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; @@ -123,8 +123,8 @@ void r8712_free_recvframe(union recv_frame *precvframe, precvframe->u.hdr.pkt = NULL; } spin_lock_irqsave(&pfree_recv_queue->lock, irqL); - list_del_init(&(precvframe->u.hdr.list)); - list_add_tail(&(precvframe->u.hdr.list), &pfree_recv_queue->queue); + list_del_init(&precvframe->u.hdr.list); + list_add_tail(&precvframe->u.hdr.list, &pfree_recv_queue->queue); if (padapter) { if (pfree_recv_queue == &precvpriv->free_recv_queue) precvpriv->free_recvframe_cnt++; @@ -319,7 +319,7 @@ static void amsdu_to_msdu(struct _adapter *padapter, union recv_frame *prframe) struct rx_pkt_attrib *pattrib; _pkt *sub_skb, *subframes[MAX_SUBFRAME_COUNT]; struct recv_priv *precvpriv = &padapter->recvpriv; - struct __queue *pfree_recv_queue = &(precvpriv->free_recv_queue); + struct __queue *pfree_recv_queue = &precvpriv->free_recv_queue; nr_subframes = 0; pattrib = &prframe->u.hdr.attrib; @@ -485,8 +485,8 @@ static int enqueue_reorder_recvframe(struct recv_reorder_ctrl *preorder_ctrl, else break; } - list_del_init(&(prframe->u.hdr.list)); - list_add_tail(&(prframe->u.hdr.list), plist); + list_del_init(&prframe->u.hdr.list); + list_add_tail(&prframe->u.hdr.list, plist); return true; } @@ -520,7 +520,7 @@ int r8712_recv_indicatepkts_in_order(struct _adapter *padapter, pattrib = &prframe->u.hdr.attrib; if (!SN_LESS(preorder_ctrl->indicate_seq, pattrib->seq_num)) { plist = plist->next; - list_del_init(&(prframe->u.hdr.list)); + list_del_init(&prframe->u.hdr.list); if (SN_EQUAL(preorder_ctrl->indicate_seq, pattrib->seq_num)) preorder_ctrl->indicate_seq = @@ -980,7 +980,7 @@ static void recvbuf2recvframe(struct _adapter *padapter, struct sk_buff *pskb) union recv_frame *precvframe = NULL; struct recv_priv *precvpriv = &padapter->recvpriv; - pfree_recv_queue = &(precvpriv->free_recv_queue); + pfree_recv_queue = &precvpriv->free_recv_queue; pbuf = pskb->data; prxstat = (struct recv_stat *)pbuf; pkt_cnt = (le32_to_cpu(prxstat->rxdw2) >> 16) & 0xff; -- 2.35.1