Commit c625426f authored by Salah Triki's avatar Salah Triki Committed by Luis de Bethencourt

fs/befs/linuxvfs.c: remove useless pr_err in befs_fill_super()

Remove pr_err since when kzalloc fails there is a generic out of memory
and stack dump.

Link: http://lkml.kernel.org/r/c5a7f2d42ec0fc8465c118248e88cd221c483391.1464226521.git.salah.triki@acm.orgSigned-off-by: default avatarSalah Triki <salah.triki@acm.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent dceee2e2
...@@ -764,11 +764,9 @@ befs_fill_super(struct super_block *sb, void *data, int silent) ...@@ -764,11 +764,9 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
save_mount_options(sb, data); save_mount_options(sb, data);
sb->s_fs_info = kzalloc(sizeof(*befs_sb), GFP_KERNEL); sb->s_fs_info = kzalloc(sizeof(*befs_sb), GFP_KERNEL);
if (sb->s_fs_info == NULL) { if (sb->s_fs_info == NULL)
pr_err("(%s): Unable to allocate memory for private "
"portion of superblock. Bailing.\n", sb->s_id);
goto unacquire_none; goto unacquire_none;
}
befs_sb = BEFS_SB(sb); befs_sb = BEFS_SB(sb);
if (!parse_options((char *) data, &befs_sb->mount_opts)) { if (!parse_options((char *) data, &befs_sb->mount_opts)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment