Skip to content

Commit

Permalink
staging: silicom: fix explicit intialization of procfs_dir in bp_proc.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chad Williamson authored and Greg Kroah-Hartman committed Oct 22, 2012
1 parent c460c7d commit 6b8c877
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/silicom/bp_proc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6b8c877

Please sign in to comment.