summaryrefslogtreecommitdiff
path: root/lib/igt_dummyload.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-12-01 15:28:49 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-12-01 15:28:49 +0000
commitcdd30a3d77e3ddd67fee28a2d16ed85e700c6bc0 (patch)
treefba8d6e6bc15d8ef9b3cdf7c2aa1397685897ccf /lib/igt_dummyload.c
parent3e7a4e064e82f803a2be978541b3f1c181cbbbd3 (diff)
lib/dummyload: Don't clear the same signal twice
Now that the signal is disable on spin_batch_end, we don't need to do the same from the signal handler if we have a match. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_dummyload.c')
-rw-r--r--lib/igt_dummyload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index cfc4805c..ec36d1a2 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -185,7 +185,7 @@ static void sig_handler(int sig, siginfo_t *info, void *arg)
igt_list_for_each(iter, &spin_list, link) {
if (iter->signo == info->si_signo) {
igt_spin_batch_end(iter);
- break;
+ return;
}
}