Skip to content

Commit

Permalink
powerpc/ps3: Remove duplicate error message
Browse files Browse the repository at this point in the history
Remove a duplicate memory allocation failure error message.

Signed-off-by: Markus Elfring <[email protected]>
Signed-off-by: Geoff Levand <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/1bc5a16a22c487c478a204ebb7b80a22d2ad9cd0.1585340156.git.geoff@infradead.org
  • Loading branch information
elfring authored and mpe committed Apr 2, 2020
1 parent 4bdd394 commit 7ee4174
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions arch/powerpc/platforms/ps3/os-area.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 7ee4174

Please sign in to comment.