Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/i2c Return "match_result", not "1". Pointed out by ...



details:   https://anonhg.NetBSD.org/src/rev/3c9420162217
branches:  trunk
changeset: 957595:3c9420162217
user:      jdc <jdc%NetBSD.org@localhost>
date:      Sat Dec 05 15:02:29 2020 +0000

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

diffstat:

 sys/dev/i2c/pcf8574.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 64f5121b5a04 -r 3c9420162217 sys/dev/i2c/pcf8574.c
--- a/sys/dev/i2c/pcf8574.c     Sat Dec 05 14:55:17 2020 +0000
+++ b/sys/dev/i2c/pcf8574.c     Sat Dec 05 15:02:29 2020 +0000
@@ -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 @@
                if (pcf8574_read(&sc, &sc.sc_state))
                        return 0;
                else
-                       return 1;
+                       return match_result;
        }
 
        /* We don't support indirect matches */



Home | Main Index | Thread Index | Old Index