From 21140e2a07164f94f910f9cd01da4875140bb137 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 19 Feb 2010 18:45:53 +0000 Subject: [PATCH] Fixed incorrect condition in scst_hw_pending_work_fn() noticed by Joe Eykholt git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1513 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/scst_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/src/scst_lib.c b/scst/src/scst_lib.c index e0c055659..fb7739b42 100644 --- a/scst/src/scst_lib.c +++ b/scst/src/scst_lib.c @@ -1863,7 +1863,7 @@ restart: goto restart; } - if (list_empty(&sess->sess_cmd_list)) { + if (!list_empty(&sess->sess_cmd_list)) { /* * For stuck cmds if there is no activity we might need to have * one more run to release them, so reschedule once again.