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

fs-udf: Delete an error message for a failed memory allocation in two functions

Omit an extra message for a memory allocation failure in these functions.

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
b5f52454 033c9da0

+1 -8
+1 -6
fs/udf/inode.c
··· 1572 1572 { 1573 1573 struct udf_inode_info *iinfo = UDF_I(inode); 1574 1574 iinfo->i_ext.i_data = kmalloc(size, GFP_KERNEL); 1575 - 1576 - if (!iinfo->i_ext.i_data) { 1577 - udf_err(inode->i_sb, "(ino %ld) no free memory\n", 1578 - inode->i_ino); 1575 + if (!iinfo->i_ext.i_data) 1579 1576 return -ENOMEM; 1580 - } 1581 - 1582 1577 return 0; 1583 1578 } 1584 1579
-2
fs/udf/super.c
··· 268 268 269 269 sbi->s_partmaps = kcalloc(count, sizeof(*sbi->s_partmaps), GFP_KERNEL); 270 270 if (!sbi->s_partmaps) { 271 - udf_err(sb, "Unable to allocate space for %d partition maps\n", 272 - count); 273 271 sbi->s_partitions = 0; 274 272 return -ENOMEM; 275 273 }