Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2199160ybv; Mon, 24 Feb 2020 00:55:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxRTqey87n3Yq2UPMoP1H87pWvXpHjbrM9/ZYqsYtu4xFofqZnGXlyzcByfPd6HELYZQoip X-Received: by 2002:a9d:53c2:: with SMTP id i2mr36870389oth.43.1582534543299; Mon, 24 Feb 2020 00:55:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582534543; cv=none; d=google.com; s=arc-20160816; b=bkjg2t3U5PNWrr0n3UKUDg/qaOAyZQgn46DxoWB7VplIy3rmvfTl3kLZNboyp8WiYz RMxZPo+ClR/KLJKEZDfkKAsi0MtXHqRUI8xx0zgAJnmyJZYnGp7esQQnJ56U7JHKNP+x a1Yuhu4S/MPiUzIW5PgY8hw4Yi70ScSPDn2mZu3DMggPPIIj5xO0/9zD8t+cMwKYXKv8 9Z27N1x/WUpyxZXQX6G7i11U18T84lEUBMLMtVJbS6RSiEBpkjBst+VJK+a9Eonjz6P2 cwCDVwZ05p8RD+WdMDLo8nZkoesKhcUwF6VYfwH9l7gWgLuSKR7coUcdMXCo/wBfDTHJ HAJg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=e3MsEV5yJViPOGYnK7aePTayk4AzHSN1hAjbyfZcaWI=; b=uRk1rHvesFGV2uZRwY6BcJV+eR45gvBOJgA3CYfQqo0BhJ8UUV/1vtuIFAFR2c6Rs9 kYmi+XwDNp4CPFbAeDPgl4kHHqb4tyVyjVM21DSM3uQ0j8ynMNtyeJo3NzWp546s5Fhq RmSFiWolLNaGO19l7Bbp5VoYM0JOZ/KlHNz3OPFUO2MuVo/Wshdi4zw4tS5HN1V3l9wt ktz+vhkNi4VGLruo3U2LXPTqZ6Cuw8cBvH/99hv12COq9JeJwdMw+ObrZzi6SkmqP7AD 40zUBEOEG6h7rRRDT5uHa3MCglMUvw0F+G0R0w96Iu/2ofm8kPfXo3XPikUrBuX9zVMf m8+w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=vGsg7GJZ; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k128si4886039oih.274.2020.02.24.00.55.31; Mon, 24 Feb 2020 00:55:43 -0800 (PST) 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=@kernel.org header.s=default header.b=vGsg7GJZ; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727882AbgBXIyK (ORCPT + 99 others); Mon, 24 Feb 2020 03:54:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:37772 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727846AbgBXIyG (ORCPT ); Mon, 24 Feb 2020 03:54:06 -0500 Received: from localhost (unknown [213.57.247.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BDE072086A; Mon, 24 Feb 2020 08:54:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1582534445; bh=jyTuYbkOx/qFl/ghU7khrY1Sboh+eGIbH2DRwV3peeI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=vGsg7GJZqiMJzCQGqK+jMAi+LsSkpS3MURNIW/WgjCKtog/6l1dfEP1AtfQ5va1rI eO4f8QZaTdQZLZpQKKKIVDWIZued0dVu8tIgk66RRxFsmwXSeLBLqFhwfAVNKN3Lk/ mR6zaw20ZjTWclTRqVC16mxvJNd7N2ycZtZc3HAU= From: Leon Romanovsky To: "David S. Miller" , Jakub Kicinski Cc: Leon Romanovsky , Tom Lendacky , Keyur Chudgar , Don Fry , Veaceslav Falico , Jay Vosburgh , linux-acenic@sunsite.dk, Maxime Ripard , Heiko Stuebner , Mark Einon , Chris Snook , linux-rockchip@lists.infradead.org, Iyappan Subramanian , Igor Russkikh , David Dillow , Netanel Belgazal , Quan Nguyen , Jay Cliburn , Lino Sanfilippo , linux-arm-kernel@lists.infradead.org, Andreas Larsson , Andy Gospodarek , netdev@vger.kernel.org, Thor Thayer , linux-kernel@vger.kernel.org, Ion Badulescu , Arthur Kiyanovski , Jes Sorensen , nios2-dev@lists.rocketboards.org, Chen-Yu Tsai Subject: [PATCH net-next v1 15/18] net/apm: Properly mark absence of FW Date: Mon, 24 Feb 2020 10:53:08 +0200 Message-Id: <20200224085311.460338-16-leon@kernel.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20200224085311.460338-1-leon@kernel.org> References: <20200224085311.460338-1-leon@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Leon Romanovsky There is no need to set "N/A" if FW is not available. Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/apm/xgene-v2/ethtool.c | 1 - drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/net/ethernet/apm/xgene-v2/ethtool.c b/drivers/net/ethernet/apm/xgene-v2/ethtool.c index da748beb7047..b78d1a99fe81 100644 --- a/drivers/net/ethernet/apm/xgene-v2/ethtool.c +++ b/drivers/net/ethernet/apm/xgene-v2/ethtool.c @@ -89,7 +89,6 @@ static void xge_get_drvinfo(struct net_device *ndev, struct platform_device *pdev = pdata->pdev; strcpy(info->driver, "xgene-enet-v2"); - snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "N/A"); sprintf(info->bus_info, "%s", pdev->name); } diff --git a/drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c b/drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c index 4e7a95bd83d7..ada70425b48c 100644 --- a/drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c +++ b/drivers/net/ethernet/apm/xgene/xgene_enet_ethtool.c @@ -103,7 +103,6 @@ static void xgene_get_drvinfo(struct net_device *ndev, struct platform_device *pdev = pdata->pdev; strcpy(info->driver, "xgene_enet"); - snprintf(info->fw_version, ETHTOOL_FWVERS_LEN, "N/A"); sprintf(info->bus_info, "%s", pdev->name); } -- 2.24.1