powerpc/ps3: Remove duplicate error message
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 27 Mar 2020 20:26:23 +0000 (20:26 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 2 Apr 2020 13:09:58 +0000 (00:09 +1100)
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
arch/powerpc/platforms/ps3/os-area.c

index cbddd63caf2dbd636fea81b2000fbcbe3cf1ea64..e8530371aed623b380f69088605a4eccb63c1b60 100644 (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) {