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:
Markus Elfring 2020-03-27 20:26:23 +00:00 committed by Michael Ellerman
parent 4bdd39460b
commit 7ee417497a

View File

@ -613,10 +613,8 @@ static int update_flash_db(void)
/* Read in header and db from flash. */
header = kmalloc(buf_len, GFP_KERNEL);
if (!header) {
pr_debug("%s: kmalloc failed\n", __func__);
if (!header)
return -ENOMEM;
}
count = os_area_flash_read(header, buf_len, 0);
if (count < 0) {