]> Pileus Git - ~andy/linux/commitdiff
staging: silicom: fix explicit intialization of procfs_dir in bp_proc.c
authorChad Williamson <chad@dahc.us>
Mon, 15 Oct 2012 10:30:39 +0000 (05:30 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Oct 2012 22:47:54 +0000 (15:47 -0700)
Remove explicit intialization of static procfs_dir to NULL, resolving a
checkpatch.pl error.

Signed-off-by: Chad Williamson <chad@dahc.us>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/silicom/bp_proc.c

index 0f110aa38dd5105cc54d174f5ddb5b8f759cd067..37f998c1c830af5c08c3964a546d4cf8663ef3d2 100644 (file)
@@ -1130,7 +1130,7 @@ set_hw_reset_pfs(struct file *file, const char *buffer,
 int bypass_proc_create_dev_sd(bpctl_dev_t *pbp_device_block)
 {
        struct bypass_pfs_sd *current_pfs = &(pbp_device_block->bypass_pfs_set);
-       static struct proc_dir_entry *procfs_dir = NULL;
+       static struct proc_dir_entry *procfs_dir;
        int ret = 0;
 
        sprintf(current_pfs->dir_name, "bypass_%s", dev->name);