From patchwork Sat Dec 21 12:39:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ariel Otilibili X-Patchwork-Id: 13917834 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 89A1C1F8EEE; Sat, 21 Dec 2024 12:45:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.55.113.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734785111; cv=none; b=KtcM9ljqc3ouGta/BUHsjWDjccwmUHGtoi08ID0pGbVBEmhiBJ5k+rNdHNq4kKrDx74np1pQpFRFnUeWr5X6zV6yTqrEvBv8ZLdtieASRub5/mhjdz9d0cNCsdqZtMTnBg0unWZohcfOVrVO5ds/dMwEJpR+DI/y/LC5Eyniu7Y= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734785111; c=relaxed/simple; bh=kBniuSemJwine9YgCommCjTTNhZ3R3gt4QvlzZXqx6U=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=I87JFG6UMHHj9UXsZAW11tfnXuU5Jw42pGMIe74yXw+RWTKNcV6K+ddBFsyjtT4dOUHU1yS1ZfOQeUbUwPZzdiDjfgsmdKV5mk1R8T8rPfQCBUELH+1CiyMtfQjQTciO1KZOJpMNtY8bHvTzyWkLZbOjDv0zdqSNivRbwVHkgzY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=eurecom.fr; spf=pass smtp.mailfrom=eurecom.fr; dkim=pass (1024-bit key) header.d=eurecom.fr header.i=@eurecom.fr header.b=vRS+dlEE; arc=none smtp.client-ip=193.55.113.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=eurecom.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=eurecom.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=eurecom.fr header.i=@eurecom.fr header.b="vRS+dlEE" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734785109; x=1766321109; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kBniuSemJwine9YgCommCjTTNhZ3R3gt4QvlzZXqx6U=; b=vRS+dlEEkezhQvMzJieERD+NEqlB7kexz1un2LJmQqNM/1cZfeXLXVzC 1aU/vj4uLP9jLkR6GPI5cbKHLONArqNPIkjqbAuJgdUZlan69pv1/1jTI pI3M4wTQUuK6CrRjmygrisuk0dlBhwuXQ+ow9u5+hHhxLhGti8dY7Ipq7 w=; X-CSE-ConnectionGUID: +qc0XaWRRGaWb3StuwkT4A== X-CSE-MsgGUID: VYMoo59ERSyXN6Vlm2YDxg== X-IronPort-AV: E=Sophos;i="6.12,253,1728943200"; d="scan'208";a="28286106" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 13:45:08 +0100 Received: from localhost.localdomain (88-183-119-157.subs.proxad.net [88.183.119.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtps.eurecom.fr (Postfix) with ESMTPSA id 069C42512; Sat, 21 Dec 2024 13:45:07 +0100 (CET) From: Ariel Otilibili To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: Ariel Otilibili , Stanislaw Gruszka , Kalle Valo Subject: [PATCH 1/2] rt2x00: Remove unusued value Date: Sat, 21 Dec 2024 13:39:32 +0100 Message-ID: <20241221124445.1094460-2-ariel.otilibili-anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221124445.1094460-1-ariel.otilibili-anieli@eurecom.fr> References: <20241221124445.1094460-1-ariel.otilibili-anieli@eurecom.fr> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Coverity-ID: 1525307 Signed-off-by: Ariel Otilibili --- drivers/net/wireless/ralink/rt2x00/rt2800lib.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c index 60c2a12e9d5e..e5f553a1ea24 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2800lib.c +++ b/drivers/net/wireless/ralink/rt2x00/rt2800lib.c @@ -8882,13 +8882,10 @@ static void rt2800_rxiq_calibration(struct rt2x00_dev *rt2x00dev) for (ch_idx = 0; ch_idx < 2; ch_idx = ch_idx + 1) { if (ch_idx == 0) { - rfval = rfb0r1 & (~0x3); rfval = rfb0r1 | 0x1; rt2800_rfcsr_write_bank(rt2x00dev, 0, 1, rfval); - rfval = rfb0r2 & (~0x33); rfval = rfb0r2 | 0x11; rt2800_rfcsr_write_bank(rt2x00dev, 0, 2, rfval); - rfval = rfb0r42 & (~0x50); rfval = rfb0r42 | 0x10; rt2800_rfcsr_write_bank(rt2x00dev, 0, 42, rfval); @@ -8901,13 +8898,10 @@ static void rt2800_rxiq_calibration(struct rt2x00_dev *rt2x00dev) rt2800_bbp_dcoc_write(rt2x00dev, 1, 0x00); } else { - rfval = rfb0r1 & (~0x3); rfval = rfb0r1 | 0x2; rt2800_rfcsr_write_bank(rt2x00dev, 0, 1, rfval); - rfval = rfb0r2 & (~0x33); rfval = rfb0r2 | 0x22; rt2800_rfcsr_write_bank(rt2x00dev, 0, 2, rfval); - rfval = rfb0r42 & (~0x50); rfval = rfb0r42 | 0x40; rt2800_rfcsr_write_bank(rt2x00dev, 0, 42, rfval); From patchwork Sat Dec 21 12:39:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ariel Otilibili X-Patchwork-Id: 13917835 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.eurecom.fr (smtp.eurecom.fr [193.55.113.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A48B91F5413; Sat, 21 Dec 2024 12:45:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.55.113.210 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734785117; cv=none; b=Dmwe/U7L/TCKN9Zbun2bCKGpzp52AhcgOQfAzFgq5E8Ft3wEhl6yEOptjdyoxggbn76i9vTlZNd/RkKVTVWd3ABcSPae40Uis8uxexODiydFAu8QY0RZjWWfJD7WDWpqHZuRBjCsdCAuM1dv2lkUn6kv5RRY/CofCJwZqydkDO8= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734785117; c=relaxed/simple; bh=4pfXzaNicloRk6U2loxPl1hGit+I3B3JF1vTGR1gG9Y=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RKlY0WFVwY6x16IvOqDtAcs/M95UKj4MiJWtG+W2ix6fEo4VcEFqUWz3Znm5CvOFwGhzlOCr+RiJG4PBUO8J8rltdrJdSX1Xhttsy2whoppK9zquXb8ueeG0rI5KYcEOcALr9N3ymYkgPYXf4a+hH30llCra9oWO/Kbi5K+KRd4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=eurecom.fr; spf=pass smtp.mailfrom=eurecom.fr; dkim=pass (1024-bit key) header.d=eurecom.fr header.i=@eurecom.fr header.b=jtF5jGcg; arc=none smtp.client-ip=193.55.113.210 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=eurecom.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=eurecom.fr Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=eurecom.fr header.i=@eurecom.fr header.b="jtF5jGcg" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734785115; x=1766321115; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=4pfXzaNicloRk6U2loxPl1hGit+I3B3JF1vTGR1gG9Y=; b=jtF5jGcgPwIFQ+zsEeY/++6apjTSxGV5EUqZg0ZH1cISyX9/4UeYSsPj y4o5HuXTxy1iw0xWTuAcqeRFV1sm8RhzdHhzNbkRe8WWmG8zW/aJc6f/6 RgZoQCapgVJtBWJyjorEckgNfl03OfPDZRk+m/dI2OAby+gO5EPv85+8K U=; X-CSE-ConnectionGUID: 6Pg5Bo/0SgeKQpU0WyM1tg== X-CSE-MsgGUID: 2DLvzNl9SJ+ZWKDFtz/Yiw== X-IronPort-AV: E=Sophos;i="6.12,253,1728943200"; d="scan'208";a="28286108" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 13:45:14 +0100 Received: from localhost.localdomain (88-183-119-157.subs.proxad.net [88.183.119.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtps.eurecom.fr (Postfix) with ESMTPSA id D7DE32514; Sat, 21 Dec 2024 13:45:13 +0100 (CET) From: Ariel Otilibili To: linux-wireless@vger.kernel.org, netdev@vger.kernel.org Cc: Ariel Otilibili , Andrei Botila , Andrew Lunn , Heiner Kallweit , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH 2/2] net/phy,neterion: Remove dead values Date: Sat, 21 Dec 2024 13:39:33 +0100 Message-ID: <20241221124445.1094460-3-ariel.otilibili-anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221124445.1094460-1-ariel.otilibili-anieli@eurecom.fr> References: <20241221124445.1094460-1-ariel.otilibili-anieli@eurecom.fr> Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org Coverity-ID: 1269173, 1575053 Signed-off-by: Ariel Otilibili --- drivers/net/ethernet/neterion/s2io.c | 2 -- drivers/net/phy/nxp-c45-tja11xx-macsec.c | 1 - 2 files changed, 3 deletions(-) diff --git a/drivers/net/ethernet/neterion/s2io.c b/drivers/net/ethernet/neterion/s2io.c index f8016dc25e0a..4f89f9fd8043 100644 --- a/drivers/net/ethernet/neterion/s2io.c +++ b/drivers/net/ethernet/neterion/s2io.c @@ -1969,8 +1969,6 @@ static void en_dis_err_alarms(struct s2io_nic *nic, u16 mask, int flag) MC_ERR_REG_ECC_ALL_DBL | PLL_LOCK_N, flag, &bar0->mc_err_mask); } - nic->general_int_mask = gen_int_mask; - /* Remove this line when alarm interrupts are enabled */ nic->general_int_mask = 0; } diff --git a/drivers/net/phy/nxp-c45-tja11xx-macsec.c b/drivers/net/phy/nxp-c45-tja11xx-macsec.c index 550ef08970f4..e15ab9ba2f50 100644 --- a/drivers/net/phy/nxp-c45-tja11xx-macsec.c +++ b/drivers/net/phy/nxp-c45-tja11xx-macsec.c @@ -818,7 +818,6 @@ static void nxp_c45_rx_sc_update(struct phy_device *phydev, u32 cfg = 0; nxp_c45_macsec_read(phydev, MACSEC_RXSC_CFG, &cfg); - cfg &= ~MACSEC_RXSC_CFG_VF_MASK; cfg = phy_secy->secy->validate_frames << MACSEC_RXSC_CFG_VF_OFF; phydev_dbg(phydev, "validate frames %u\n",