projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cc81c0f
)
habanalabs: don't declare tmp twice in same function
author
Oded Gabbay
<ogabbay@kernel.org>
Mon, 4 Jul 2022 08:51:55 +0000
(11:51 +0300)
committer
Oded Gabbay
<ogabbay@kernel.org>
Tue, 12 Jul 2022 06:09:29 +0000
(09:09 +0300)
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>
drivers/misc/habanalabs/common/command_submission.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/common/command_submission.c
b/drivers/misc/habanalabs/common/command_submission.c
index eb5f1aee15fcec7266fca79deea1b4184a44bf99..941f1ff190ae5f98e15efd8f5813c14bf5236548 100644
(file)
--- 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);
}