Skip to content

Commit 7ee4174

Browse files
elfringmpe
authored andcommitted
powerpc/ps3: Remove duplicate error message
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
1 parent 4bdd394 commit 7ee4174

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

arch/powerpc/platforms/ps3/os-area.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,8 @@ static int update_flash_db(void)
613613
/* Read in header and db from flash. */
614614

615615
header = kmalloc(buf_len, GFP_KERNEL);
616-
if (!header) {
617-
pr_debug("%s: kmalloc failed\n", __func__);
616+
if (!header)
618617
return -ENOMEM;
619-
}
620618

621619
count = os_area_flash_read(header, buf_len, 0);
622620
if (count < 0) {

0 commit comments

Comments
 (0)