Commit f2d9ec87 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

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: default avatarOded Gabbay <ogabbay@kernel.org>
parent cc81c0f3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);
		}