Skip to content

Commit

Permalink
staging: usbip: userspace: libsrc: do not init static/globals to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kurt Kanzenbach authored and Greg Kroah-Hartman committed Mar 11, 2013
1 parent cbb8671 commit 5af7746
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion drivers/staging/usbip/userspace/libsrc/names.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
6 changes: 3 additions & 3 deletions drivers/staging/usbip/userspace/libsrc/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5af7746

Please sign in to comment.