From fe0846b1e17da02ebb6f0925449a90c914e4f0a1 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 1 Feb 2017 09:03:22 +0000 Subject: [PATCH] sna: Remove bogus assert that the connector is a zombie before reattaching To know that the connector was unplugged before we discover it was plugged back in again, requires handing the unplug notification in time. This does not always happen and we may see the reattachment instead. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99432 Signed-off-by: Chris Wilson --- src/sna/sna_display.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 17c45c55..162686f5 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -5095,7 +5095,6 @@ sna_output_add(struct sna *sna, unsigned id, unsigned serial) if (strcmp(output->name, name) == 0) { assert(output->scrn == scrn); assert(output->funcs == &sna_output_funcs); - assert(to_sna_output(output)->id == 0); sna_output_destroy(output); goto reset; }