Received: by 2002:a25:23cc:0:0:0:0:0 with SMTP id j195csp1698856ybj; Wed, 6 May 2020 03:44:50 -0700 (PDT) X-Google-Smtp-Source: APiQypJRjTfB7cV1HRYeUwQPOPuEnP82tT3I4QZh0asLO0ZstbhT2SzMLN8nz3BjpodjMB+mSMmH X-Received: by 2002:a17:906:c44b:: with SMTP id ck11mr6907695ejb.110.1588761890634; Wed, 06 May 2020 03:44:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588761890; cv=none; d=google.com; s=arc-20160816; b=xnXJdMTMlpHjB3e27XyLoTil/SAT9sVo7gKQ/qXwBP1Hvms097bYKr88os9mbm9ZCq 5DOrb/XLFOBq+UdeNlQf72cFeifLapkhzXld37OUAxZJ0JRx+rg75FfgNCVcpCqarNCT dwKYUoLjrtbZ6fTJJZBgTL9m7JhYFXuE1K46de9JZywWaCqY5IrPGJsrB/fl/1UZBcSb Bj/sbl0i0ATlIcYvzu4IMnoa6P8xY6acWLe//ZWR41HwzIMwmrmBq+Z+qZplrrXGhRVt 9XSK7/Xy/uBX5S5/ZgP0+zCmIs3ovD+86xeBKecZAHKwgBPu0dJs72KIauuoTGy4xzXX Ysmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=LYDH8+LPT6BtwjWzsudowhml5ZJxv8wTYtvxdOkxASE=; b=efxIRlpuSMpBx7+mbJHmn3FaWICaNN0bAovJAJQj4ODRSSP4ErkfvAKfgldVtYoTrM s6qcm0Wcc5k4TiVpmnHv7HFZRcCZhtjF5Gws0vy2NT2RPWBM9MoAfykOsgXTb3fG3AGV bjpPOtEY0JvVZPblUUaHn2tQzeJUCiLlTGE8b8kNON28RJCWP9Vrc4cJkY0/W6xhAoEg hphemgb5DbMHP1lSENKdP+slmKyaEblXkYzy6DTqZrj6N3EMPL5EpFcmeic1ZPGzIyuu 1MvS8Jhyz+bLWK8LH8u3TX2XJy+9aqvBxRfOazhQMcOpOy52aCIOcCirQww/O1qnQN9W gYlw== 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 l17si796681edw.425.2020.05.06.03.44.27; Wed, 06 May 2020 03:44:50 -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 S1727878AbgEFGRL (ORCPT + 99 others); Wed, 6 May 2020 02:17:11 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:3808 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726495AbgEFGRK (ORCPT ); Wed, 6 May 2020 02:17:10 -0400 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 2F845A04B3344AC12140; Wed, 6 May 2020 14:17:05 +0800 (CST) Received: from huawei.com (10.175.124.28) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.487.0; Wed, 6 May 2020 14:16:55 +0800 From: Jason Yan To: , , , , , , CC: Jason Yan Subject: [PATCH net-next] net: bridge: return false in br_mrp_enabled() Date: Wed, 6 May 2020 14:16:16 +0800 Message-ID: <20200506061616.18929-1-yanaijie@huawei.com> X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.124.28] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following coccicheck warning: net/bridge/br_private.h:1334:8-9: WARNING: return of 0/1 in function 'br_mrp_enabled' with return type bool Signed-off-by: Jason Yan --- net/bridge/br_private.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/br_private.h b/net/bridge/br_private.h index c35647cb138a..78d3a951180d 100644 --- a/net/bridge/br_private.h +++ b/net/bridge/br_private.h @@ -1331,7 +1331,7 @@ static inline int br_mrp_process(struct net_bridge_port *p, struct sk_buff *skb) static inline bool br_mrp_enabled(struct net_bridge *br) { - return 0; + return false; } static inline void br_mrp_port_del(struct net_bridge *br, -- 2.21.1