Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 434aafb5 authored by Markus Elfring's avatar Markus Elfring Committed by Jan Kara
Browse files

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent b5f52454
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -109,11 +109,9 @@ static int v2_read_file_info(struct super_block *sb, int type)
		return -1;
	}
	info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS);
	if (!info->dqi_priv) {
		printk(KERN_WARNING
		       "Not enough memory for quota information structure.\n");
	if (!info->dqi_priv)
		return -ENOMEM;
	}

	qinfo = info->dqi_priv;
	if (version == 0) {
		/* limits are stored as unsigned 32-bit data */