Received: by 10.213.65.68 with SMTP id h4csp3009940imn; Mon, 2 Apr 2018 19:19:58 -0700 (PDT) X-Google-Smtp-Source: AIpwx499i69B7epcHYxFZbn2d/X3zYMOk8qTv7WBnMduK5s4tjq2l10boT51mv8EiXE6XvaHIPQb X-Received: by 2002:a17:902:6b03:: with SMTP id o3-v6mr6509792plk.183.1522721998350; Mon, 02 Apr 2018 19:19:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522721998; cv=none; d=google.com; s=arc-20160816; b=gmGM8EddbVcAJ/F+n+OnFRiv49ZQjcAs9gdrWCKo/o0jlVI7IB4jRW9rZVBiHHpBa5 sT0m+cDsr2hkK3dhhbRwjcHuvp5eZ5OaWRuJqkRKfBL6JQzMT0Xns6wC2+c4g3oobSi4 fZLV7Esg2YDDl/yuzrLPJMimgr/SE8G1JeF4asm66ljmVPu3w3xOhH23qRN+cjmW6Mjm Fa/42w1naZ30kh4vUj+KXdICDGJAGM7Ceyi79EG2qM6hhtjmF4vzKJ0gjLuYaVPCucBF AGbDRAhChNsViaG+02Iaz76xtmArP+Kb4wUnNbM1RdYYQxV9LUSkIaUYd7Ym2YR3imw+ KDdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :references:in-reply-to:date:cc:to:from:subject:message-id :arc-authentication-results; bh=eKc3Ftxi+e9+D8YmSsaSl+r6uFjv/b9fK/HcTsEtN/A=; b=MOjJWDFtxrMcRwefH675tXmhVKXQgHFQhhNJGQVJjdW+01LFiHxKkSMS3PpjpYCB5S ghefpWB2LLtyTVUsp1ZPgxU5wCQZcD7GBzsQ7ygjB7Bzq88y/YUZDZ7NnT2r5BpRzlWO JvyUJPrNSzYyiZSedBxoqC35mTANqCbeKRz0aNhvLFjJfwxhuj16N2Y6tQkR9ZkZmwtg k/G/e/3iCagtDuOMBPWI626txc4hjTR9sHsvXzcILeG78WZnnf8RznN70UxBzWN/r0Ct KWg0nE5fcZjxOAxJf1Cgh5HHYwzXGKeMdRyjkjKW51sqk8SQWQ+/OgR88ORU60nJKZ6l qO0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 200si1170991pga.50.2018.04.02.19.19.44; Mon, 02 Apr 2018 19:19:58 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754782AbeDCCSh (ORCPT + 99 others); Mon, 2 Apr 2018 22:18:37 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:13008 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1754725AbeDCCSg (ORCPT ); Mon, 2 Apr 2018 22:18:36 -0400 X-UUID: ec513e69d1c547e68bea8ac885686feb-20180403 Received: from mtkexhb01.mediatek.inc [(172.21.101.102)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 413154787; Tue, 03 Apr 2018 10:18:27 +0800 Received: from mtkcas08.mediatek.inc (172.21.101.126) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Tue, 3 Apr 2018 10:18:25 +0800 Received: from [172.21.77.33] (172.21.77.33) by mtkcas08.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1210.3 via Frontend Transport; Tue, 3 Apr 2018 10:18:24 +0800 Message-ID: <1522721904.18424.51.camel@mtkswgap22> Subject: Re: [PATCH net] net: dsa: mt7530: Use NULL instead of plain integer From: Sean Wang To: Florian Fainelli CC: , Andrew Lunn , Vivien Didelot , open list , Date: Tue, 3 Apr 2018 10:18:24 +0800 In-Reply-To: <20180402232414.19671-1-f.fainelli@gmail.com> References: <20180402232414.19671-1-f.fainelli@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.3-0ubuntu6 Content-Transfer-Encoding: 7bit MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-12.5.0.5042-8.2.9001-23760.004 X-TM-AS-Result: No-15.290600-8.000000-10 X-TMASE-MatchedRID: +c13yJDs9034OiVTWoD8RMmB4bNJoA6MjLOy13Cgb4+qvcIF1TcLYBCz 9g14hIMaUxPAM3J2QaoL6G+1LgVPyzAPG7OdV/f5XP5rFAucBUHzvNxVvAWejd9RlPzeVuQQXGl pMstVe4Ra43+J+risUKUS0MnJVHzyTX7PJ/OU3vKDGx/OQ1GV8rHlqZYrZqdI+gtHj7OwNO3DW0 xVTs41PCxRafCzgzVfdYvI3q/OzLoOpuLrAtPac1w60UwZ9GtI X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No X-TMASE-Result: 10--15.290600-8.000000 X-TMASE-Version: SMEX-12.5.0.5042-8.2.9001-23760.004 X-TMASE-POSTMAN: 2-d; X-MTK: N Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-04-02 at 16:24 -0700, Florian Fainelli wrote: > We would be passing 0 instead of NULL as the rsp argument to > mt7530_fdb_cmd(), fix that. > Acked-by: Sean Wang BTW, does the part of the commit message should be updated with "passing NULL instead of 0"? > Fixes: b8f126a8d543 ("net-next: dsa: add dsa support for Mediatek MT7530 switch") > Signed-off-by: Florian Fainelli > --- > drivers/net/dsa/mt7530.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c > index 4e53c5ce23ff..a7f6c0a62fc7 100644 > --- a/drivers/net/dsa/mt7530.c > +++ b/drivers/net/dsa/mt7530.c > @@ -917,7 +917,7 @@ mt7530_port_fdb_add(struct dsa_switch *ds, int port, > > mutex_lock(&priv->reg_mutex); > mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_ENT); > - ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, 0); > + ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, NULL); > mutex_unlock(&priv->reg_mutex); > > return ret; > @@ -933,7 +933,7 @@ mt7530_port_fdb_del(struct dsa_switch *ds, int port, > > mutex_lock(&priv->reg_mutex); > mt7530_fdb_write(priv, vid, port_mask, addr, -1, STATIC_EMP); > - ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, 0); > + ret = mt7530_fdb_cmd(priv, MT7530_FDB_WRITE, NULL); > mutex_unlock(&priv->reg_mutex); > > return ret; > @@ -1293,7 +1293,7 @@ mt7530_setup(struct dsa_switch *ds) > } > > /* Flush the FDB table */ > - ret = mt7530_fdb_cmd(priv, MT7530_FDB_FLUSH, 0); > + ret = mt7530_fdb_cmd(priv, MT7530_FDB_FLUSH, NULL); > if (ret < 0) > return ret; >