Module Name:    src
Committed By:   mbalmer
Date:           Sat Apr  2 08:20:07 UTC 2011

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

Log Message:
Fix misplaced parenthesis.  From henning.peter...@t-online.de, thanks.


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/sys/dev/i2c/pcf8583.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/pcf8583.c
diff -u src/sys/dev/i2c/pcf8583.c:1.12 src/sys/dev/i2c/pcf8583.c:1.13
--- src/sys/dev/i2c/pcf8583.c:1.12	Sat Dec 12 14:44:10 2009
+++ src/sys/dev/i2c/pcf8583.c	Sat Apr  2 08:20:07 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: pcf8583.c,v 1.12 2009/12/12 14:44:10 tsutsui Exp $	*/
+/*	$NetBSD: pcf8583.c,v 1.13 2011/04/02 08:20:07 mbalmer Exp $	*/
 
 /*
  * Copyright (c) 2003 Wasabi Systems, Inc.
@@ -43,7 +43,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pcf8583.c,v 1.12 2009/12/12 14:44:10 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pcf8583.c,v 1.13 2011/04/02 08:20:07 mbalmer Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -290,7 +290,7 @@
 
 	clock_secs_to_ymdhms(tv->tv_sec, &dt);
 
-	if ((err = pcfrtc_clock_write(sc, &dt, tv->tv_usec / 10000) == 0))
+	if ((err = pcfrtc_clock_write(sc, &dt, tv->tv_usec / 10000)) != 0)
 		return err;
 
 	return (0);

Reply via email to