From: Chad Williamson Date: Mon, 15 Oct 2012 10:30:39 +0000 (-0500) Subject: staging: silicom: fix explicit intialization of procfs_dir in bp_proc.c X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=6b8c8773dcbb4f718e05596739e02abb5b29d7da;p=linux-beck.git staging: silicom: fix explicit intialization of procfs_dir in bp_proc.c Remove explicit intialization of static procfs_dir to NULL, resolving a checkpatch.pl error. Signed-off-by: Chad Williamson Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/silicom/bp_proc.c b/drivers/staging/silicom/bp_proc.c index 0f110aa38dd5..37f998c1c830 100644 --- a/drivers/staging/silicom/bp_proc.c +++ b/drivers/staging/silicom/bp_proc.c @@ -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);