From: Oded Gabbay Date: Mon, 4 Jul 2022 08:51:55 +0000 (+0300) Subject: habanalabs: don't declare tmp twice in same function X-Git-Tag: v6.6.17~6911^2~27^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f2d9ec872c5db258ba8998b6b4c17866fca95ada;p=platform%2Fkernel%2Flinux-rpi.git 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 --- diff --git a/drivers/misc/habanalabs/common/command_submission.c b/drivers/misc/habanalabs/common/command_submission.c index eb5f1ae..941f1ff 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); }