* [PATCH][next] firmware: tee_bnxt: remove redundant assignment to variable nbytes
@ 2024-10-07 13:59 Colin Ian King
0 siblings, 0 replies; only message in thread
From: Colin Ian King @ 2024-10-07 13:59 UTC (permalink / raw)
To: Michael Chan, Rafał Miłecki, netdev, linux-mips
Cc: kernel-janitors, linux-kernel
Variable nbytes is being assigned a value that is never read, it is
being re-assigned a new value immediately afterwards. The assignment
is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
drivers/firmware/broadcom/tee_bnxt_fw.c | 2 --
1 file changed, 2 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 */
--
2.39.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2024-10-07 13:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-10-07 13:59 [PATCH][next] firmware: tee_bnxt: remove redundant assignment to variable nbytes Colin Ian King
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).