Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 23 Feb 2016 22:55:44 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r295939 - head/sys/dev/acpica
Message-ID:  <201602232255.u1NMtiFq066450@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Tue Feb 23 22:55:44 2016
New Revision: 295939
URL: https://svnweb.freebsd.org/changeset/base/295939

Log:
  Silence PVS-Studio warning (V595).

Modified:
  head/sys/dev/acpica/acpi_video.c

Modified: head/sys/dev/acpica/acpi_video.c
==============================================================================
--- head/sys/dev/acpica/acpi_video.c	Tue Feb 23 22:50:45 2016	(r295938)
+++ head/sys/dev/acpica/acpi_video.c	Tue Feb 23 22:55:44 2016	(r295939)
@@ -616,10 +616,9 @@ acpi_video_vo_bind(struct acpi_video_out
 			/* XXX - see above. */
 			vo->vo_economy = vo->vo_levels[BCL_ECONOMY];
 		}
-	}
-	if (vo->vo_levels != NULL)
 		AcpiInstallNotifyHandler(handle, ACPI_DEVICE_NOTIFY,
 		    acpi_video_vo_notify_handler, vo);
+	}
 	ACPI_SERIAL_END(video_output);
 }
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201602232255.u1NMtiFq066450>