From patchwork Sat Dec 21 03:44:15 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: 13917609 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 BE1A12A1CA; Sat, 21 Dec 2024 03:54:25 +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=1734753269; cv=none; b=XDew62XNIPeuL7eJxiMoG8xmmBkq73Z+Md20U6j5t803L9bBqhAeB0ZlBDN2M4zLjwg9KGc1uobXBC+ymNBfr0UYakWxZshpxFwne7kZk6eh3u8cQXFgdxzerM01DDoRYtxMGXQZf2eNAtlsE9E9Ni4bRxlHF9qY6xOdPdSUi54= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734753269; c=relaxed/simple; bh=rMrFuj1mcqxNBj4ULL9b39T4RNEENvGonnQaT1vMmXk=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=KZd9U9p202RTKIT38lr7y8XcJ1XWHSSNA05Jn0SIgc9/5sgyrs4xU9FmyQCXbp6/RrYrsdoNNMsxXodEYStBFF9kx98ATXWtYaia9zrarrWTCcL41LtHTK5gNyEJD/VJViWGpnLjISHCbvOpTCA2kDAWqSDjOh8bQB36lyxEjvA= 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=mafBkgDc; 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="mafBkgDc" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734753267; x=1766289267; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rMrFuj1mcqxNBj4ULL9b39T4RNEENvGonnQaT1vMmXk=; b=mafBkgDcksU9bc0Il0Cc78hRfi1H1+bluQ6UlnWI/GM/7X6TQMX+VKhd q1DXTh/bgs0nJPwGkHWvoNaBB71PkPWo5ZWLHIS5pTY0m43kqCHg8GJ12 jvLtbLoRx99Z2b4CCEBg6e/A0n8gqjNFo70ak2y72RBodkA1Is/nNpeUr U=; X-CSE-ConnectionGUID: omllOnv0TmKkC/zgcWQkdA== X-CSE-MsgGUID: /EX/0BAMSFS4br3J5rV1Xg== X-IronPort-AV: E=Sophos;i="6.12,252,1728943200"; d="scan'208";a="28282875" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 04:54:24 +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 3FE5A24CA; Sat, 21 Dec 2024 04:54:23 +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 1/3] drivers/firmware/broadcom, ethernet/marvell: Remove unused values Date: Sat, 21 Dec 2024 04:44:15 +0100 Message-ID: <20241221035352.1020228-2-ariel.otilibili-anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221035352.1020228-1-ariel.otilibili-anieli@eurecom.fr> References: <20241221035352.1020228-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 03:44:16 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: 13917610 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 9C3C913A244; Sat, 21 Dec 2024 03:54:28 +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=1734753271; cv=none; b=DjDECUxG2aX+g6Br310Vr/can4UVLrT0PS6wxVNZ4zHExif6lo1iX6ZHg+ghQjAwrHo92Wy5dZNObWc8m6Uzt8u5TPhmuVvJIWx6ur+mS5Kt4oSiStR58LzHrnJFygHUIz26Zqvl8lTJVF9x3WU2OaiY6UTezBBIvtKynrKyc4k= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734753271; c=relaxed/simple; bh=FF8B7+0RGu9p6ZX98LtsbrCpQ5iZLU71QjDKC8O2Aqc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=OqpG1TnR19NmLW+PFiZac0s0SPNlaBf+HHd9G0hwj+19/IZf4aTe6cQ1CVuqcUfQj8k1gHLCSG7Xy8AHl4P4LbpPVhlEgX0eDPZAo7W7B0OJvoNWCskkNDwTc/FGQdHNlnjWOGL2tCzJV/q8uJ44jzFVIZQUsJcN2NBe006i6Qo= 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=onGQsIae; 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="onGQsIae" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734753270; x=1766289270; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=FF8B7+0RGu9p6ZX98LtsbrCpQ5iZLU71QjDKC8O2Aqc=; b=onGQsIae2uqOG8zCCKHSoclbrUANkcOTJGYpqxRcBNMI02l6sltdM6Eg dyaxXQsnYOcxABJgnX57xFL5ERbIAo5pJEecvEvniH9HThGs7tqz8+Xxf ip2WR0DtKiZe1x2xvbaFPXJor5Qmfc6pSCp8/cnm+rjpr57WBv3dwn8Tc 4=; X-CSE-ConnectionGUID: 5WYlqwa2RwqwN+m26FPHxw== X-CSE-MsgGUID: SvKPCDhoQDqRZpLYtHWL/w== X-IronPort-AV: E=Sophos;i="6.12,252,1728943200"; d="scan'208";a="28282876" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 04:54:29 +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 1128E24CB; Sat, 21 Dec 2024 04:54:28 +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 2/3] usb/cx231xx: Remove unused value Date: Sat, 21 Dec 2024 04:44:16 +0100 Message-ID: <20241221035352.1020228-3-ariel.otilibili-anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221035352.1020228-1-ariel.otilibili-anieli@eurecom.fr> References: <20241221035352.1020228-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 03:44:17 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: 13917611 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 F219713B5A9; Sat, 21 Dec 2024 03:54:33 +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=1734753276; cv=none; b=cIuClgiLEZvLG6SsZchXyJtGABo0Kq+F5SKIXDROzxUetBUf/Iz8VnhU1OpFxuT67P7PdLPeiBUFMD3iQQ9CpM2+4qh5K61zb6D+C8LksF8fXPECsBS1CxLRbTipTtX8kHSlC5dXjUxpbuxEGEDViG/zSbCOybv4jmY9fQiFWhM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734753276; c=relaxed/simple; bh=9LxhP2Una6DEO/awpeuo7oWgBNDXGbZ0xno755wh+Wo=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FE76vncognbmnjOBjizT8WZcKxlDC9P7u+dZwv+arh6Oax9kNbTN7SwoFNYrTiJmL8cmfsAMXkH4p/yGu7IUONIoTT1OQwtNolvb62ueykQqj0JrQpsz9DkfXbrxVcvragKRcW/Lm+cYgAfHlHzdP5JHl8+/jEplzmJ1izBzdl8= 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=RvQC99rs; 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="RvQC99rs" DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=eurecom.fr; i=@eurecom.fr; q=dns/txt; s=default; t=1734753275; x=1766289275; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=9LxhP2Una6DEO/awpeuo7oWgBNDXGbZ0xno755wh+Wo=; b=RvQC99rsaP+gcrKxysIL6WlCAYe9T4n2+hOoQrRmw9wPFhQYICsUgG/U 9unUoHnNOHbd/iWOCGlhDxTze+O+Q1ogpLCn0k0iGzq2mQq8/Jcj41kDT lcijOnevW1PGrfS0XrU8QhDR6HA3WOWx7K7v9/5sxsHGMrRWXHk7cLLhA A=; X-CSE-ConnectionGUID: son8TozXTGSzhCADkuivKQ== X-CSE-MsgGUID: UjZvEwmAQQGFR1YhZCi7ww== X-IronPort-AV: E=Sophos;i="6.12,252,1728943200"; d="scan'208";a="28282877" Received: from waha.eurecom.fr (HELO smtps.eurecom.fr) ([10.3.2.236]) by drago1i.eurecom.fr with ESMTP; 21 Dec 2024 04:54:33 +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 E84BC24CC; Sat, 21 Dec 2024 04:54:31 +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 3/3] net/can/dev: Remove dead code Date: Sat, 21 Dec 2024 04:44:17 +0100 Message-ID: <20241221035352.1020228-4-ariel.otilibili-anieli@eurecom.fr> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241221035352.1020228-1-ariel.otilibili-anieli@eurecom.fr> References: <20241221035352.1020228-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);