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; From patchwork Sat Dec 21 11:06:48 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: 13917808 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 1F6EC1F2C3F; Sat, 21 Dec 2024 11:15:19 +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=NtczvclpLftlvanKGjBBp0m+yuRnhA4SkauoERhepDxZ7CGe7cmT2SFaxxeF+4wMKi5RT0mVTHphX5nMUqB2D00pC+yMizdadSCy9CeyhGZq4+L9z2DPOF3XQT/YNjXsQoR+Qu0LctTnhDMjmwmBJZFNZ8vk11soCPqMhDGxJxI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734779723; c=relaxed/simple; bh=FF8B7+0RGu9p6ZX98LtsbrCpQ5iZLU71QjDKC8O2Aqc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=equ42Yy2trs3yM7ehAJAEzkEkUjBvboikM6h52G4gEk8/iNgY4IDhBvx5JCKOLjwgKNhLDghpu0oDmDE8oShB/4wXermav9u7oz6xPIBAJk8wxHFghaJm7YYhWxzsT2UnRJntPH9z7L++9iPksWf7Y5BRQlOR1Dm9yo0TPhpwHg= 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=ebNFZMVG; 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="ebNFZMVG" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734779721; x=1766315721; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FF8B7+0RGu9p6ZX98LtsbrCpQ5iZLU71QjDKC8O2Aqc=; b=ebNFZMVGwlP1nSHNQnZ+BmrDjYGFW1RoLix/7ev4Al1w2eVI+08OkFS4 +u27ypGsqYITo+bFVXhSDTFXE40bG+TPFbTMjw4mVj+Zor7KxQTEP573/ jw74mUXmVwBpI03wTztlyEr80Zd24hb2qMhF6VcS6mZMLgIjYUsDy/DhO I=; X-CSE-ConnectionGUID: 0Htoea1LSy27Hydsge8c3w== X-CSE-MsgGUID: 9Er96X2GTLKtfr/ATG7NlA== X-IronPort-AV: E=Sophos;i="6.12,253,1728943200"; d="scan'208";a="28285772" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 12:15:12 +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 A424824E2; Sat, 21 Dec 2024 12:15:11 +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 , Mauro Carvalho Chehab Subject: [PATCH v2 2/3] usb/cx231xx: Remove unused value Date: Sat, 21 Dec 2024 12:06:48 +0100 Message-ID: <20241221111454.1074285-3-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-ID: 1269153 Signed-off-by: Ariel Otilibili --- drivers/media/usb/cx231xx/cx231xx-avcore.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/media/usb/cx231xx/cx231xx-avcore.c b/drivers/media/usb/cx231xx/cx231xx-avcore.c index 1cfec76b72f3..f2a2d0c39080 100644 --- a/drivers/media/usb/cx231xx/cx231xx-avcore.c +++ b/drivers/media/usb/cx231xx/cx231xx-avcore.c @@ -1896,7 +1896,6 @@ int cx231xx_dif_set_standard(struct cx231xx *dev, u32 standard) status = vid_blk_write_word(dev, DIF_SOFT_RST_CTRL_REVB, 0x00000000); /* Save the Spec Inversion value */ - dif_misc_ctrl_value &= FLD_DIF_SPEC_INV; dif_misc_ctrl_value = 0x3A093F10; } else if (standard & (V4L2_STD_SECAM_B | V4L2_STD_SECAM_D | V4L2_STD_SECAM_G | From patchwork Sat Dec 21 11:06:49 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: 13917809 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 8C6B91F0E3C; Sat, 21 Dec 2024 11:15:21 +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=1734779724; cv=none; b=hFXUip8m3wkTeUDPFNkeP/YYPQzFnZHpWctNHx9bH5ri6dBg3H+/CFd8xYB04P673Bh3ROEcfWV38TilZCq4Rr49XevvRkp7LQc+Uck/kg8jY5qLyfy6qQZ72LeaSHXbGOtxVBOgUks2MoBdCNW7a8iIsYRFq6VyIDCi8oAI7XU= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734779724; c=relaxed/simple; bh=qyuZSQuSPdf+MYhk0zy0wHji1939KejojCXtx3DRgXA=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=lAobpJ/5+3JMgsAOxhgWZFGnId1vUPI4V3h9XSMyKLMIFmMfCAQaK0n9KUrf8AVHJTU03oySa/+xpTBANpCbDWvexuQVMiUt+OrUhZi6bKfhIk4vNbHenT3r0O+W6nODUfES3F9rQg7flXjYmdCYedNz3kqUMdGh2qJ8D/tLWOU= 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=zJzq7UBa; 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="zJzq7UBa" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734779722; x=1766315722; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=qyuZSQuSPdf+MYhk0zy0wHji1939KejojCXtx3DRgXA=; b=zJzq7UBa0jfvwb+7LaP/COgp9O07a51HzDsUyuoxC0Bfe4Ru4qqEzExU Ou1UsOThjxJ35P4mX1nPi4c4I5NGW2XkMdg6HezsCRGj3wOzaT4yEz3h3 IB2elz0wG9IdWCYtwhyn6HddIr+3mQchIlSbwQWwbQbCG/ICFQc4MqS+u c=; X-CSE-ConnectionGUID: zjX0CKoeTtyYI2U61AsfwQ== X-CSE-MsgGUID: iNsk4kxzSX2gvtZZPyxRwQ== X-IronPort-AV: E=Sophos;i="6.12,253,1728943200"; d="scan'208";a="28285774" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 12:15:17 +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 7247D24E3; Sat, 21 Dec 2024 12:15:16 +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 , Marc Kleine-Budde , Vincent Mailhol Subject: [PATCH v2 3/3] net/can/dev: Remove dead code Date: Sat, 21 Dec 2024 12:06:49 +0100 Message-ID: <20241221111454.1074285-4-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 The default switch case ends with a return; meaning this return is never reached. Coverity-ID: 1497123 Signed-off-by: Ariel Otilibili --- drivers/net/can/dev/dev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/net/can/dev/dev.c b/drivers/net/can/dev/dev.c index 681643ab3780..5ec3170b896a 100644 --- a/drivers/net/can/dev/dev.c +++ b/drivers/net/can/dev/dev.c @@ -85,8 +85,6 @@ const char *can_get_state_str(const enum can_state state) default: return ""; } - - return ""; } EXPORT_SYMBOL_GPL(can_get_state_str);