Module Name:    src
Committed By:   jdc
Date:           Sat Dec  5 15:02:29 UTC 2020

Modified Files:
        src/sys/dev/i2c: pcf8574.c

Log Message:
Return "match_result", not "1".  Pointed out by jmcneill.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/dev/i2c/pcf8574.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2c/pcf8574.c
diff -u src/sys/dev/i2c/pcf8574.c:1.3 src/sys/dev/i2c/pcf8574.c:1.4
--- src/sys/dev/i2c/pcf8574.c:1.3	Sat Dec  5 14:48:09 2020
+++ src/sys/dev/i2c/pcf8574.c	Sat Dec  5 15:02:29 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: pcf8574.c,v 1.3 2020/12/05 14:48:09 jdc Exp $ */
+/* $NetBSD: pcf8574.c,v 1.4 2020/12/05 15:02:29 jdc Exp $ */
 
 /*-
  * Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcf8574.c,v 1.3 2020/12/05 14:48:09 jdc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcf8574.c,v 1.4 2020/12/05 15:02:29 jdc Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -121,7 +121,7 @@ pcf8574_match(device_t parent, cfdata_t 
 		if (pcf8574_read(&sc, &sc.sc_state))
 			return 0;
 		else
-			return 1;
+			return match_result;
 	}
 
 	/* We don't support indirect matches */

Reply via email to