Skip to content

Commit

Permalink
mtd:fix the bad format in the mtdcore.c
Browse files Browse the repository at this point in the history
Remove the spare spaces in the head of the lines.

Signed-off-by: Wanlong Gao <wanlong.gao@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
  • Loading branch information
Wanlong Gao authored and David Woodhouse committed May 25, 2011
1 parent 8d8f26e commit d5ca512
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/mtd/mtdcore.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,7 @@ void register_mtd_user (struct mtd_notifier *new)

list_add(&new->list, &mtd_notifiers);

__module_get(THIS_MODULE);
__module_get(THIS_MODULE);

mtd_for_each_device(mtd)
new->add(mtd);
Expand Down Expand Up @@ -707,9 +707,9 @@ static int mtd_proc_show(struct seq_file *m, void *v)
seq_printf(m, "mtd%d: %8.8llx %8.8x \"%s\"\n",
mtd->index, (unsigned long long)mtd->size,
mtd->erasesize, mtd->name);
}
}
mutex_unlock(&mtd_table_mutex);
return 0;
return 0;
}

static int mtd_proc_open(struct inode *inode, struct file *file)
Expand Down Expand Up @@ -781,7 +781,7 @@ static int __init init_mtd(void)
static void __exit cleanup_mtd(void)
{
#ifdef CONFIG_PROC_FS
if (proc_mtd)
if (proc_mtd)
remove_proc_entry( "mtd", NULL);
#endif /* CONFIG_PROC_FS */
class_unregister(&mtd_class);
Expand Down

0 comments on commit d5ca512

Please sign in to comment.