powerpc/pseries: Delete an error message for a failed string duplication in dlpar_store()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 27 Aug 2019 11:37:56 +0000 (13:37 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 31 Jan 2021 11:35:50 +0000 (22:35 +1100)
Omit an extra message for a memory allocation failure in this function.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Nathan Lynch <nathanl@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/535cfec2-782f-61ec-f6fb-c50186ead2af@web.de
arch/powerpc/platforms/pseries/dlpar.c

index 2a783dc..deb48b4 100644 (file)
@@ -521,10 +521,8 @@ static ssize_t dlpar_store(struct class *class, struct class_attribute *attr,
        int rc;
 
        args = argbuf = kstrdup(buf, GFP_KERNEL);
-       if (!argbuf) {
-               pr_info("Could not allocate resources for DLPAR operation\n");
+       if (!argbuf)
                return -ENOMEM;
-       }
 
        /*
         * Parse out the request from the user, this will be in the form: