Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb s/0/NULL/ for pointer (usb_async_proc)



details:   https://anonhg.NetBSD.org/src/rev/50807e656e5a
branches:  trunk
changeset: 933540:50807e656e5a
user:      skrll <skrll%NetBSD.org@localhost>
date:      Tue May 26 19:55:43 2020 +0000

description:
s/0/NULL/ for pointer (usb_async_proc)

diffstat:

 sys/dev/usb/usb.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r e549d7a2a5c4 -r 50807e656e5a sys/dev/usb/usb.c
--- a/sys/dev/usb/usb.c Tue May 26 19:51:14 2020 +0000
+++ b/sys/dev/usb/usb.c Tue May 26 19:55:43 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usb.c,v 1.185 2020/05/26 19:51:14 skrll Exp $  */
+/*     $NetBSD: usb.c,v 1.186 2020/05/26 19:55:43 skrll Exp $  */
 
 /*
  * Copyright (c) 1998, 2002, 2008, 2012 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.185 2020/05/26 19:51:14 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usb.c,v 1.186 2020/05/26 19:55:43 skrll Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -724,7 +724,7 @@
                        return EBUSY;
                usb_dev_open = 1;
                mutex_enter(&proc_lock);
-               usb_async_proc = 0;
+               usb_async_proc = NULL;
                mutex_exit(&proc_lock);
                return 0;
        }
@@ -804,7 +804,7 @@
 
        if (unit == USB_DEV_MINOR) {
                mutex_enter(&proc_lock);
-               usb_async_proc = 0;
+               usb_async_proc = NULL;
                mutex_exit(&proc_lock);
                usb_dev_open = 0;
        }
@@ -831,7 +831,7 @@
                        if (*(int *)data)
                                usb_async_proc = l->l_proc;
                        else
-                               usb_async_proc = 0;
+                               usb_async_proc = NULL;
                        mutex_exit(&proc_lock);
                        return 0;
 



Home | Main Index | Thread Index | Old Index