summaryrefslogtreecommitdiff
path: root/drivers/misc/habanalabs/common/command_submission.c
diff options
context:
space:
mode:
authorOded Gabbay <ogabbay@kernel.org>2022-07-04 11:51:55 +0300
committerOded Gabbay <ogabbay@kernel.org>2022-07-12 09:09:29 +0300
commitf2d9ec872c5db258ba8998b6b4c17866fca95ada (patch)
tree94d7fed85ad3473478ac32296772a5712a442780 /drivers/misc/habanalabs/common/command_submission.c
parentcc81c0f3b03e2830665975419893d3a0445fca85 (diff)
habanalabs: don't declare tmp twice in same function
tmp is declared in the scope of the function cs_do_release() and inside a block inside that function. Signed-off-by: Oded Gabbay <ogabbay@kernel.org>
Diffstat (limited to 'drivers/misc/habanalabs/common/command_submission.c')
-rw-r--r--drivers/misc/habanalabs/common/command_submission.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/common/command_submission.c b/drivers/misc/habanalabs/common/command_submission.c
index eb5f1aee15fc..941f1ff190ae 100644
--- a/drivers/misc/habanalabs/common/command_submission.c
+++ b/drivers/misc/habanalabs/common/command_submission.c
@@ -718,9 +718,9 @@ static void cs_do_release(struct kref *ref)
* staged submission
*/
if (cs->staged_last) {
- struct hl_cs *staged_cs, *tmp;
+ struct hl_cs *staged_cs, *tmp_cs;
- list_for_each_entry_safe(staged_cs, tmp,
+ list_for_each_entry_safe(staged_cs, tmp_cs,
&cs->staged_cs_node, staged_cs_node)
staged_cs_put(hdev, staged_cs);
}