Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp993720pxb; Wed, 15 Sep 2021 19:11:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAfvcoVmk3JFX0/LY4H+7INKwzqJ597hyUV9fCVY62yVH5ub0h3PiSQ9vuHVyebk8kjhAt X-Received: by 2002:a17:906:3882:: with SMTP id q2mr3562961ejd.396.1631758259942; Wed, 15 Sep 2021 19:10:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631758259; cv=none; d=google.com; s=arc-20160816; b=Cnmj0HIFPAKsxRqVY1duA16Sji1OpI/PxCXaG+Yanbfp1DFxvDf7iLyi46kGQPhiHV 4jEaS07aAmG6MJFBNXa0EadtpIyM5svjQ6FtMMr0Edjl+5n0QkMfpX50GePpbGju/oJs u0h185OAmM2ib0+TFPi4u5IrFN8Hfq+GpE2CBnD21t9SfGfwql/l3T86V3H9MIEC+UzR 2S4UcYB+twYjmqPd5t1jVRNeBXEzLIcoFSG5/4SlvmNU0s6a9JZHKAojBQwYXn+ZRsgN d6WZYAT7eMFZgK2mc/Xd0TR75ck9msLy4HwlgQ97sy9ZGnM4Rucj4hl0LfL6S3cTGjPT YCCw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=3krCjt6x8z288hQuZpMerl/I5iuGYYwNdQrkVYAIJUg=; b=1BfuS8xgEcHzRPTn/922AHsitfX83adeJnfFYYTrcIZ6tmQlHYssLjomVtlDZGZXwc JLgWXdCPa7Rzr3KmaxA6Jwpyb7FkgxZ7JHrOmvp7WkPCs6njhVBtKH0lvlrrY4KsB7w6 651S1uPzX2nM7Eb/HYX8PDX2n43mX8ffX+6/Kyz/v55B+eg6WYzOHjNtdEzGOCVkcZsD QNuY3z+OGBSs/fRJOvHzyJUZZXe2QXQXQWmyg0CGaCP2boWp3WcQI+yF5bkK2glciU5b MY5DhTJ5arlemJjEfyQ8Yi1bnwbkKblU1QUfEfEgnwIbspVi/C5JrIIIf0vSPHofyLJg v5cQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id x18si1941016ejd.405.2021.09.15.19.10.36; Wed, 15 Sep 2021 19:10:59 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233902AbhIPCI5 (ORCPT + 99 others); Wed, 15 Sep 2021 22:08:57 -0400 Received: from smtp23.cstnet.cn ([159.226.251.23]:48582 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S233745AbhIPCIz (ORCPT ); Wed, 15 Sep 2021 22:08:55 -0400 Received: from localhost.localdomain (unknown [124.16.138.128]) by APP-03 (Coremail) with SMTP id rQCowADX3XnOpkJhmWOVAA--.28482S2; Thu, 16 Sep 2021 10:07:10 +0800 (CST) From: Jiasheng Jiang To: davem@davemloft.net, kuba@kernel.org Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiasheng Jiang Subject: [PATCH] netlink: Remove extra brackets of nla_for_each_attr() Date: Thu, 16 Sep 2021 02:07:08 +0000 Message-Id: <1631758028-3805500-1-git-send-email-jiasheng@iscas.ac.cn> X-Mailer: git-send-email 2.7.4 X-CM-TRANSID: rQCowADX3XnOpkJhmWOVAA--.28482S2 X-Coremail-Antispam: 1UD129KBjvdXoW7JrWDXFyfXw18uF1UZFW7CFg_yoWxtrbEyw s7ZrWvg3yrAFyakr18JFWkWF1Fkwn5JFyS9Fn3tw4fX348Jr13X395GrZxtFyfC397AFy3 J3WIqry7J3y3ujkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUb4kFF20E14v26r1j6r4UM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_Ar0_tr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Cr0_ Gr1UM28EF7xvwVC2z280aVAFwI0_Gr1j6F4UJwA2z4x0Y4vEx4A2jsIEc7CjxVAFwI0_Gr 1j6F4UJwAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv 7VC0I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r 1j6r4UM4x0Y48IcxkI7VAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwCY02Avz4vE14v_ Gr1l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxV WUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI 7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r 1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8 JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfU5vtCUU UUU X-Originating-IP: [124.16.138.128] X-CM-SenderInfo: pmld2xxhqjqxpvfd2hldfou0/ Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org It's obvious that '&(rem)' has unneeded brackets. Therefore it's better to remove them. Signed-off-by: Jiasheng Jiang --- include/net/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/net/netlink.h b/include/net/netlink.h index 1ceec51..5822e0d 100644 --- a/include/net/netlink.h +++ b/include/net/netlink.h @@ -1920,7 +1920,7 @@ static inline int nla_total_size_64bit(int payload) #define nla_for_each_attr(pos, head, len, rem) \ for (pos = head, rem = len; \ nla_ok(pos, rem); \ - pos = nla_next(pos, &(rem))) + pos = nla_next(pos, &rem)) /** * nla_for_each_nested - iterate over nested attributes -- 2.7.4