Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb KNF (from nhusb)



details:   https://anonhg.NetBSD.org/src/rev/a68a7c8e37c5
branches:  trunk
changeset: 842701:a68a7c8e37c5
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Jul 22 06:24:57 2019 +0000

description:
KNF (from nhusb)

diffstat:

 sys/dev/usb/udsir.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 9d5f04156137 -r a68a7c8e37c5 sys/dev/usb/udsir.c
--- a/sys/dev/usb/udsir.c       Mon Jul 22 01:35:36 2019 +0000
+++ b/sys/dev/usb/udsir.c       Mon Jul 22 06:24:57 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: udsir.c,v 1.7 2018/09/03 16:29:34 riastradh Exp $      */
+/*     $NetBSD: udsir.c,v 1.8 2019/07/22 06:24:57 skrll Exp $  */
 
 /*
  * Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: udsir.c,v 1.7 2018/09/03 16:29:34 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: udsir.c,v 1.8 2019/07/22 06:24:57 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/device.h>
@@ -693,7 +693,7 @@
                kn->kn_fop = &udsirwrite_filtops;
                break;
        default:
-               return (EINVAL);
+               return EINVAL;
        }
 
        kn->kn_hook = sc;
@@ -702,7 +702,7 @@
        SLIST_INSERT_HEAD(klist, kn, kn_selnext);
        splx(s);
 
-       return (0);
+       return 0;
 }
 
 static int
@@ -783,7 +783,7 @@
        struct udsir_softc *sc = kn->kn_hook;
 
        kn->kn_data = sc->sc_ur_framelen;
-       return (kn->kn_data > 0);
+       return kn->kn_data > 0;
 }
 
 static void
@@ -804,7 +804,7 @@
        struct udsir_softc *sc = kn->kn_hook;
 
        kn->kn_data = 0;
-       return (sc->sc_direction != udir_input);
+       return sc->sc_direction != udir_input;
 }
 
 



Home | Main Index | Thread Index | Old Index