summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2020-03-27 23:26:23 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2020-04-02 16:09:58 +0300
commit7ee417497a29028502cf952f419ab2635f563d51 (patch)
tree4b8db1b49eb9213784202354bcf3887b274d0b23 /arch/powerpc
parent4bdd39460b5f57d4f165c4a05b22e66eb3a490ae (diff)
downloadlinux-7ee417497a29028502cf952f419ab2635f563d51.tar.xz
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
Diffstat (limited to 'arch/powerpc')
-rw-r--r--arch/powerpc/platforms/ps3/os-area.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/ps3/os-area.c b/arch/powerpc/platforms/ps3/os-area.c
index cbddd63caf2d..e8530371aed6 100644
--- a/arch/powerpc/platforms/ps3/os-area.c
+++ b/arch/powerpc/platforms/ps3/os-area.c
@@ -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) {