Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Markus Elfring and committed by
Jan Kara
434aafb5 b5f52454

+2 -4
+2 -4
fs/quota/quota_v2.c
··· 109 109 return -1; 110 110 } 111 111 info->dqi_priv = kmalloc(sizeof(struct qtree_mem_dqinfo), GFP_NOFS); 112 - if (!info->dqi_priv) { 113 - printk(KERN_WARNING 114 - "Not enough memory for quota information structure.\n"); 112 + if (!info->dqi_priv) 115 113 return -ENOMEM; 116 - } 114 + 117 115 qinfo = info->dqi_priv; 118 116 if (version == 0) { 119 117 /* limits are stored as unsigned 32-bit data */