Skip to contentSkip to conversation

firmware: tee_bnxt: remove redundant assignment to variable nbytes

PATCH New Colin Ian King 1 participant 1 message Oct 7, 2024

Subsystems (6)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 firmware: tee_bnxt: remove redundant assignment to variable nbytes

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.

---
 drivers/firmware/broadcom/tee_bnxt_fw.c | 2 --
 1 file changed, 2 deletions(-)
drivers/firmware/broadcom/tee_bnxt_fw.c +0 -2
index 40e3183a3d11..e0ea4ddb9a74 100644
@@ -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 */
Signature · 1 line
2.39.5