From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B2687C63705 for ; Wed, 7 Dec 2022 21:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229999AbiLGVJu (ORCPT ); Wed, 7 Dec 2022 16:09:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47322 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229562AbiLGVJp (ORCPT ); Wed, 7 Dec 2022 16:09:45 -0500 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3A1469305 for ; Wed, 7 Dec 2022 13:09:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1670447384; x=1701983384; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=A7a9sqkLbE6Gtt15Ja5DbI50d22X6kyhB4O3QldroEU=; b=Xi1nQP81ylprW0vPG+qtWnwU4jgyDN82C5EVJap6MdlWPKcolyEooJL9 QdOpbYJxeWv6Z64gTRfTQtrxb+U0vVuHW8BSaHUq1H9WJZXoAmXLCnfB+ 7E2p/kLoMfxuhXPXW35SxoySnZ4toRQB9oTP9r8ytWLaydMPoIf8yrT9H lAf/kouswaJVQFSPW5Ccs8qfxB5BTry+s/1eKFqK7CwynHvKvFpfxmc9H ZdpmIi019CtCdH0O8mOjL2UNFo76lCpdiMYV+/GTO2J3DF3K9SFzrIfe8 SAQTcsaU8kVBJxUb1SrxJhs1FeCt/X4RvbUPbBuCTI/2DQKYk2bgrfMCs g==; X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="296697047" X-IronPort-AV: E=Sophos;i="5.96,225,1665471600"; d="scan'208";a="296697047" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Dec 2022 13:09:42 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10554"; a="677508819" X-IronPort-AV: E=Sophos;i="5.96,225,1665471600"; d="scan'208";a="677508819" Received: from anguy11-desk2.jf.intel.com ([10.166.244.147]) by orsmga008.jf.intel.com with ESMTP; 07 Dec 2022 13:09:41 -0800 From: Tony Nguyen To: davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, edumazet@google.com Cc: Jacob Keller , netdev@vger.kernel.org, anthony.l.nguyen@intel.com, richardcochran@gmail.com, leon@kernel.org, Gurucharan G Subject: [PATCH net-next v2 04/15] ice: fix misuse of "link err" with "link status" Date: Wed, 7 Dec 2022 13:09:26 -0800 Message-Id: <20221207210937.1099650-5-anthony.l.nguyen@intel.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20221207210937.1099650-1-anthony.l.nguyen@intel.com> References: <20221207210937.1099650-1-anthony.l.nguyen@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: Jacob Keller The ice_ptp_link_change function has a comment which mentions "link err" when referring to the current link status. We are storing the status of whether link is up or down, which is not an error. It is appears that this use of err accidentally got included due to an overzealous search and replace when removing the ice_status enum and local status variable. Fix the wording to use the correct term. Signed-off-by: Jacob Keller Tested-by: Gurucharan G (A Contingent worker at Intel) Signed-off-by: Tony Nguyen --- drivers/net/ethernet/intel/ice/ice_ptp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/intel/ice/ice_ptp.c b/drivers/net/ethernet/intel/ice/ice_ptp.c index f93fa0273252..5607ec578499 100644 --- a/drivers/net/ethernet/intel/ice/ice_ptp.c +++ b/drivers/net/ethernet/intel/ice/ice_ptp.c @@ -1347,7 +1347,7 @@ int ice_ptp_link_change(struct ice_pf *pf, u8 port, bool linkup) if (ptp_port->port_num != port) return -EINVAL; - /* Update cached link err for this port immediately */ + /* Update cached link status for this port immediately */ ptp_port->link_up = linkup; if (!test_bit(ICE_FLAG_PTP, pf->flags)) -- 2.35.1