提交 434aafb5 编写于 作者: M Markus Elfring 提交者: Jan Kara

quota_v2: Delete an error message for a failed memory allocation in v2_read_file_info()

Omit an extra message for a memory allocation failure in this function.

This issue was detected by using the Coccinelle software.
Signed-off-by: NMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: NJan Kara <jack@suse.cz>
上级 b5f52454
...@@ -109,11 +109,9 @@ static int v2_read_file_info(struct super_block *sb, int type) ...@@ -109,11 +109,9 @@ static int v2_read_file_info(struct super_block *sb, int type)
return -1; return -1;
} }
info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS); info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS);
if (!info->dqi_priv) { if (!info->dqi_priv)
printk(KERN_WARNING
"Not enough memory for quota information structure.\n");
return -ENOMEM; return -ENOMEM;
}
qinfo = info->dqi_priv; qinfo = info->dqi_priv;
if (version == 0) { if (version == 0) {
/* limits are stored as unsigned 32-bit data */ /* limits are stored as unsigned 32-bit data */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册