summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2016-09-24 17:03:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2016-09-24 17:03:38 +0000
commit613596a195ba9bf7e47ee17625a23813af8c989b (patch)
tree76c8c08350e3a5d91447c64b9ce03f199aa40b35 /sys/dev
parente77a7c3c80494114f3cf69023596998aa3626dce (diff)
Assert that bus->force_bit >= 0 instead of force_bit. Found by clang.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/drm/i915/intel_i2c.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/drm/i915/intel_i2c.c b/sys/dev/pci/drm/i915/intel_i2c.c
index ae3bb078413..e648239e2a7 100644
--- a/sys/dev/pci/drm/i915/intel_i2c.c
+++ b/sys/dev/pci/drm/i915/intel_i2c.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: intel_i2c.c,v 1.8 2016/04/16 17:39:44 kettenis Exp $ */
+/* $OpenBSD: intel_i2c.c,v 1.9 2016/09/24 17:03:37 kettenis Exp $ */
/*
* Copyright (c) 2012, 2013 Mark Kettenis <kettenis@openbsd.org>
*
@@ -436,7 +436,7 @@ intel_gmbus_force_bit(struct i2c_controller *controller, bool force_bit)
else
bus->force_bit--;
- KASSERT(force_bit >= 0);
+ KASSERT(bus->force_bit >= 0);
if (bus->force_bit) {
bus->controller.ic_exec = NULL;