powerpc/ps3: Remove duplicate error message
Remove a duplicate memory allocation failure error message. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Geoff Levand <geoff@infradead.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/1bc5a16a22c487c478a204ebb7b80a22d2ad9cd0.1585340156.git.geoff@infradead.org
This commit is contained in:
parent
4bdd39460b
commit
7ee417497a
@ -613,10 +613,8 @@ static int update_flash_db(void)
|
|||||||
/* Read in header and db from flash. */
|
/* Read in header and db from flash. */
|
||||||
|
|
||||||
header = kmalloc(buf_len, GFP_KERNEL);
|
header = kmalloc(buf_len, GFP_KERNEL);
|
||||||
if (!header) {
|
if (!header)
|
||||||
pr_debug("%s: kmalloc failed\n", __func__);
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
|
||||||
|
|
||||||
count = os_area_flash_read(header, buf_len, 0);
|
count = os_area_flash_read(header, buf_len, 0);
|
||||||
if (count < 0) {
|
if (count < 0) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user