Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/pad Style change.



details:   https://anonhg.NetBSD.org/src/rev/720571b5c9cb
branches:  trunk
changeset: 824477:720571b5c9cb
user:      nat <nat%NetBSD.org@localhost>
date:      Tue Jun 06 07:32:41 2017 +0000

description:
Style change.

diffstat:

 sys/dev/pad/pad.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r 42499d69938a -r 720571b5c9cb sys/dev/pad/pad.c
--- a/sys/dev/pad/pad.c Tue Jun 06 07:31:40 2017 +0000
+++ b/sys/dev/pad/pad.c Tue Jun 06 07:32:41 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pad.c,v 1.35 2017/06/06 07:29:35 nat Exp $ */
+/* $NetBSD: pad.c,v 1.36 2017/06/06 07:32:41 nat Exp $ */
 
 /*-
  * Copyright (c) 2007 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.35 2017/06/06 07:29:35 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pad.c,v 1.36 2017/06/06 07:32:41 nat Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -318,9 +318,8 @@
        if (sc == NULL)
                return ENXIO;
 
-       if (atomic_swap_uint(&sc->sc_open, 1) != 0) {
+       if (atomic_swap_uint(&sc->sc_open, 1) != 0)
                return EBUSY;
-       }
        
        return 0;
 }



Home | Main Index | Thread Index | Old Index