From patchwork Sat Dec 21 11:06:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ariel Otilibili-Anieli X-Patchwork-Id: 13917807 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 AC3F51F2C58; Sat, 21 Dec 2024 11:15:18 +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=1734779723; cv=none; b=u+I4gPoEUyNGd1+V9cTZBskBUkI0XitEoTABQ99gph+Rb4WfD2W3C12OPCExe0hp8tcVPcypBb+j6endp8U+FXgTTgtU1uG0rZAd8nxXOpitur9EHNUVUkI7JqOrLnjQdPl+31a97cpWL9SQR1nO3xBFGeNORq3j9KlmCyrA9Bk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734779723; c=relaxed/simple; bh=6Qt+jRjg0I6KADSD1c8k86YxGtfF5mXKwmnLgO/3LqU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=gzLS4eSHcQwsmD4uqfZGCW3mzoMp3VTivpI5JPSDAi/x3In4nG/BK51FtT9T5EGhJiLl7Qbe7LcMT547JTg/nfjDJ68J5+LvADDMa0bFnDzj8bjCEZ2JH24s8dHYItyEU27ucE44dGCjnrTtJPc7T9MFcH63XYIoWz0Eqz0FcDI= 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=S92GJ8D5; 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="S92GJ8D5" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734779720; x=1766315720; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=6Qt+jRjg0I6KADSD1c8k86YxGtfF5mXKwmnLgO/3LqU=; b=S92GJ8D5bj80jrbpKSg8MkUDK7PHYxRLvpqL79XF4CGQ//pFYDH23znw WAtihPKw045xBNVCfESa0vL9+bBYhvCeAVfbNMRk5WP6psBcY58A6csCG uJypSQWwXkLNuZadKnjJXDL/x2h+bWVZSLOiJFpleVieTlhUnZhAr7xsZ k=; X-CSE-ConnectionGUID: +R2CjOwpT16CMchJvThsBw== X-CSE-MsgGUID: IsSiGuV2SIS3ZOPUnixErQ== X-IronPort-AV: E=Sophos;i="6.12,253,1728943200"; d="scan'208";a="28285770" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 12:15:10 +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 1BB1624E1; Sat, 21 Dec 2024 12:15:09 +0100 (CET) From: Ariel Otilibili To: linux-media@vger.kernel.org, linux-mips@vger.kernel.org, netdev@vger.kernel.org, linux-can@vger.kernel.org Cc: Ariel Otilibili , =?utf-8?b?UmFmYcWC?= =?utf-8?b?IE1pxYJlY2tp?= , Michael Chan , Sunil Goutham , Geetha sowjanya , Subbaraya Sundeep , hariprasad , Bharat Bhushan , Andrew Lunn , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Subject: [PATCH v2 1/3] drivers/firmware/broadcom, ethernet/marvell: Remove unused values Date: Sat, 21 Dec 2024 12:06:47 +0100 Message-ID: <20241221111454.1074285-2-ariel.otilibili-anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221111454.1074285-1-ariel.otilibili-anieli@eurecom.fr> References: <20241221035352.1020228-1-ariel.otilibili-anieli@eurecom.fr> <20241221111454.1074285-1-ariel.otilibili-anieli@eurecom.fr> Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Coverity-Ids: 1487817, 1561102 Signed-off-by: Ariel Otilibili --- drivers/firmware/broadcom/tee_bnxt_fw.c | 2 -- drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 2 -- 2 files changed, 4 deletions(-) diff --git a/drivers/firmware/broadcom/tee_bnxt_fw.c b/drivers/firmware/broadcom/tee_bnxt_fw.c index 40e3183a3d11..e0ea4ddb9a74 100644 --- a/drivers/firmware/broadcom/tee_bnxt_fw.c +++ b/drivers/firmware/broadcom/tee_bnxt_fw.c @@ -143,8 +143,6 @@ int tee_bnxt_copy_coredump(void *buf, u32 offset, u32 size) prepare_args(TA_CMD_BNXT_COPY_COREDUMP, &arg, param); while (rbytes) { - nbytes = rbytes; - nbytes = min_t(u32, rbytes, param[0].u.memref.size); /* Fill additional invoke cmd params */ diff --git a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c index 6cc7a78968fc..0584528485e6 100644 --- a/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c +++ b/drivers/net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c @@ -329,11 +329,9 @@ static int cn10k_mcs_write_rx_flowid(struct otx2_nic *pfvf, mac_da = ether_addr_to_u64(secy->netdev->dev_addr); req->data[0] = FIELD_PREP(MCS_TCAM0_MAC_DA_MASK, mac_da); - req->mask[0] = ~0ULL; req->mask[0] = ~MCS_TCAM0_MAC_DA_MASK; req->data[1] = FIELD_PREP(MCS_TCAM1_ETYPE_MASK, ETH_P_MACSEC); - req->mask[1] = ~0ULL; req->mask[1] &= ~MCS_TCAM1_ETYPE_MASK; req->mask[2] = ~0ULL;