projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
022f19c
)
bna: remove variable num_entries
author
Colin Ian King
<colin.i.king@gmail.com>
Mon, 24 Oct 2022 12:59:51 +0000
(13:59 +0100)
committer
Jakub Kicinski
<kuba@kernel.org>
Wed, 26 Oct 2022 02:44:59 +0000
(19:44 -0700)
Variable num_entries is just being incremented and it's never used
anywhere else. The variable and the increment are redundant so
remove it.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Link:
https://lore.kernel.org/r/20221024125951.2155434-1-colin.i.king@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/brocade/bna/bfa_msgq.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/brocade/bna/bfa_msgq.c
b/drivers/net/ethernet/brocade/bna/bfa_msgq.c
index 47125f41953012b3cffdda4d1d5a2f3a9bfd9361..fa40d5ec6f1c6696fc08cecba534656fef255e46 100644
(file)
--- a/
drivers/net/ethernet/brocade/bna/bfa_msgq.c
+++ b/
drivers/net/ethernet/brocade/bna/bfa_msgq.c
@@
-202,7
+202,6
@@
static void
__cmd_copy(struct bfa_msgq_cmdq *cmdq, struct bfa_msgq_cmd_entry *cmd)
{
size_t len = cmd->msg_size;
- int num_entries = 0;
size_t to_copy;
u8 *src, *dst;
@@
-219,7
+218,6
@@
__cmd_copy(struct bfa_msgq_cmdq *cmdq, struct bfa_msgq_cmd_entry *cmd)
BFA_MSGQ_INDX_ADD(cmdq->producer_index, 1, cmdq->depth);
dst = (u8 *)cmdq->addr.kva;
dst += (cmdq->producer_index * BFI_MSGQ_CMD_ENTRY_SIZE);
- num_entries++;
}
}