]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: usbip: userspace: libsrc: do not init static/globals to 0
authorKurt Kanzenbach <ly80toro@cip.cs.fau.de>
Fri, 22 Feb 2013 11:13:26 +0000 (12:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Mar 2013 16:45:28 +0000 (09:45 -0700)
This patch fixes the following checkpatch errors:
-ERROR: do not initialise statics to 0 or NULL
-ERROR: do not initialise globals to 0 or NULL

Signed-off-by: Kurt Kanzenbach <ly80toro@cip.cs.fau.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/usbip/userspace/libsrc/names.c
drivers/staging/usbip/userspace/libsrc/usbip_common.c

index 448d09d1d821af91e7c9e58e2d7e565cb98d14c6..8fe932d996beed5f15cfd8851a4ae6c5c92d7d46 100644 (file)
@@ -246,7 +246,7 @@ struct pool {
        void *mem;
 };
 
-static struct pool *pool_head = NULL;
+static struct pool *pool_head;
 
 static void *my_malloc(size_t size)
 {
index 154b4b1103ec0f59d14c3f75da57a268ce6586cb..98dc3df5e1a6e4a6a0e8c2fed8f0306a2a722167 100644 (file)
@@ -8,9 +8,9 @@
 #undef  PROGNAME
 #define PROGNAME "libusbip"
 
-int usbip_use_syslog = 0;
-int usbip_use_stderr = 0;
-int usbip_use_debug  = 0;
+int usbip_use_syslog;
+int usbip_use_stderr;
+int usbip_use_debug;
 
 struct speed_string {
        int num;