Преглед на файлове

Removing a useless test.

[Coccinelle] notnull.cocci
Cyril Roelandt преди 13 години
родител
ревизия
232776f8d4
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/core/sched_policy.c

+ 1 - 1
src/core/sched_policy.c

@@ -466,7 +466,7 @@ pick:
 profiling:
 	/* Note that we may get a NULL task in case the scheduler was unlocked
 	 * for some reason. */
-	if (profiling && task)
+	if (profiling)
 	{
 		struct starpu_task_profiling_info *profiling_info;
 		profiling_info = task->profiling_info;