Received: by 10.213.65.68 with SMTP id h4csp2892614imn; Mon, 2 Apr 2018 16:27:27 -0700 (PDT) X-Google-Smtp-Source: AIpwx48cNw2UYFthSY8AW8Sbux8f+kLpUNW/kbmbVVV34thnwivP/ElDvd9CH8IXQqmm7UKzw4un X-Received: by 10.101.85.9 with SMTP id f9mr7475162pgr.189.1522711647558; Mon, 02 Apr 2018 16:27:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522711647; cv=none; d=google.com; s=arc-20160816; b=d5oxnBAJrbQERq8xzujnLCHD9kKqviP0e06i1GtRJ0TBYmBhfQlUB7gmjiOOXRw7NM auY068O9fOOW5cT55vrXzIUZTl8jKHjXYhshoPyGvHJF83KFt35xq0JE0XoXeYVz9Njh pWHeS6Im/QwynG7QNtO6SL9Rei6SAcKB7jARiW7NAJstXRGcJQCehhuogTgHKd/qfy4T 6tc2EiLUw1rjx2N9sGFmbcezpheAUWXOWeC1FkcPq4LBFNSi5MnewJEAnFkYrZHwcHVr V2PK6LyTIZyYhP3XFRa66BWXbgSnibQD6nkxgEaH3/FmAxLV4d6fQRT4IH0C7KQH2lbP 8McQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=cXrwev9oIc0s8HKJVTAPAkynMlzbsotlgh0AjxxM8rg=; b=vEh7l333lKAUrCnNC5CBl0LGgIlYZ1iHO4IIRB+FqtcQ4rTL4puLA6LvJTMLpbYTUP Qryp/0Ep5S8S7UIK9EfpfJU5tmYelpknzIVwa2k4khJO5O0dVZRE+RdlHyy+jE0ULceg JFA42H1Czs/es1Z9uxOah1l3y9n8Q50Fw+VAaUd+PouCleGHYTn+8X+I/Sl0RkX0STaB GTdkBirAyc+eZQFmKnBUaMUq72lDlp4UjWbK+4rCeuQSnR9Ei8bsljy3NgHqDs156G1E hpmxgUjCJ5u6hARfgA474lo2MxVJRCn2tmKNJQWLcW/eRK4nQovSTQeS+XVqOjzZX4I/ oaDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=D1/i5Zc4; 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 f188si1018186pfc.316.2018.04.02.16.27.13; Mon, 02 Apr 2018 16:27:27 -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=D1/i5Zc4; 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 S1754697AbeDBXYY (ORCPT + 99 others); Mon, 2 Apr 2018 19:24:24 -0400 Received: from mail-pl0-f66.google.com ([209.85.160.66]:38592 "EHLO mail-pl0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754550AbeDBXYW (ORCPT ); Mon, 2 Apr 2018 19:24:22 -0400 Received: by mail-pl0-f66.google.com with SMTP id k6-v6so1113780pls.5; Mon, 02 Apr 2018 16:24:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=cXrwev9oIc0s8HKJVTAPAkynMlzbsotlgh0AjxxM8rg=; b=D1/i5Zc43CT3oE5BrgBJKAAxLfCa4CSaa3AjePphi44Lcqrd8JvxqC46BewFzlqtZZ S7Wpb1bxoO3W0QTavDOBqXRqEMVbXc5uDe04S1/xTBHy6agmKKcdL4x/gAunjGRT+R7G dWHeSIdpKI8n2Ww6f2dRVoLEJ/GUzYc7/XbKryhZ5zZmIt5h7apCMPp9Moa/7fIcq6LR UOqWxjhAKFUDMC6iYMNOHjbSjZVlb4tJwDq0mh5ywATSwZD8pjABrUuDAdAy3CqkJEnF wyodgRp4bSVKVbN6j1WLIml94mtrjUTIodQLRVW1DOUoX/C4q5Yt6wVBZvoGJ1KPXJNZ nwHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=cXrwev9oIc0s8HKJVTAPAkynMlzbsotlgh0AjxxM8rg=; b=JFcg10M4NXbZ/xQ/MGZz2xA2DIMkH4/96sdeFHRgaAWapiG1g3RoK1jRGhtTO++Os1 NvdO/9bjolog57gKsghMBxBKMFToOLCVVPkaTIiRge4ZWmPZPhpXy+4RVxHMnCVi02Zt TwjGJgLCg3SHbxU9hQsnaEa+bAFxnjFl++N1CMTTXThZFCb/QkN2Rp4GoIgu4rExy70/ vd3ACBS9GmWD1ACpaebaXFWAHxWTbOZ04ky1gcCvl+GGcn0FZksvvynGjRzvSy4sroM4 MjYd/LLVkQ6w+ioXeoSR/W9Ti4tSzaSlrZJAKk7mfQjQXNEVfLO5BJnhCfoL4SP1v7d8 BAWQ== X-Gm-Message-State: AElRT7HkZaBbCE6Apj+aBE79DuQ8z9y+5UlRev/PaPfOsz0YAD1y0/ai rSNlqxagrSXXM4AXJN5eLfbLES61 X-Received: by 2002:a17:902:9308:: with SMTP id bc8-v6mr11635020plb.189.1522711461491; Mon, 02 Apr 2018 16:24:21 -0700 (PDT) Received: from fainelli-desktop.igp.broadcom.net ([192.19.223.250]) by smtp.gmail.com with ESMTPSA id m13sm2151772pgs.25.2018.04.02.16.24.19 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 02 Apr 2018 16:24:20 -0700 (PDT) From: Florian Fainelli To: netdev@vger.kernel.org Cc: Florian Fainelli , Sean Wang , Andrew Lunn , Vivien Didelot , linux-kernel@vger.kernel.org (open list) Subject: [PATCH net] net: dsa: mt7530: Use NULL instead of plain integer Date: Mon, 2 Apr 2018 16:24:14 -0700 Message-Id: <20180402232414.19671-1-f.fainelli@gmail.com> X-Mailer: git-send-email 2.14.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org We would be passing 0 instead of NULL as the rsp argument to mt7530_fdb_cmd(), fix that. 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; -- 2.14.1