From 613596a195ba9bf7e47ee17625a23813af8c989b Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Sat, 24 Sep 2016 17:03:38 +0000 Subject: Assert that bus->force_bit >= 0 instead of force_bit. Found by clang. --- sys/dev/pci/drm/i915/intel_i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev') 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 * @@ -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; -- cgit v1.2.3