Skip to content

Commit c625426

Browse files
salah-trikiluisbg
authored andcommitted
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.org Signed-off-by: Salah Triki <salah.triki@acm.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent dceee2e commit c625426

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

‎fs/befs/linuxvfs.c‎

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -764,11 +764,9 @@ befs_fill_super(struct super_block *sb, void *data, int silent)
764764
save_mount_options(sb, data);
765765

766766
sb->s_fs_info = kzalloc(sizeof(*befs_sb), GFP_KERNEL);
767-
if (sb->s_fs_info == NULL) {
768-
pr_err("(%s): Unable to allocate memory for private "
769-
"portion of superblock. Bailing.\n", sb->s_id);
767+
if (sb->s_fs_info == NULL)
770768
goto unacquire_none;
771-
}
769+
772770
befs_sb = BEFS_SB(sb);
773771

774772
if (!parse_options((char *) data, &befs_sb->mount_opts)) {

0 commit comments

Comments
 (0)