aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/dlpar.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2019-08-27 13:37:56 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2021-01-31 22:35:50 +1100
commit6e7a4da754f3087fa1f0839c1128aac233c21442 (patch)
treed047c20622d15aa9a7aad2d3f4fbab348d9c99d4 /arch/powerpc/platforms/pseries/dlpar.c
parentpowerpc/pseries: Delete an unnecessary kfree() call in dlpar_store() (diff)
downloadlinux-dev-6e7a4da754f3087fa1f0839c1128aac233c21442.tar.xz
linux-dev-6e7a4da754f3087fa1f0839c1128aac233c21442.zip
powerpc/pseries: Delete an error message for a failed string duplication in dlpar_store()
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
Diffstat (limited to 'arch/powerpc/platforms/pseries/dlpar.c')
-rw-r--r--arch/powerpc/platforms/pseries/dlpar.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pseries/dlpar.c b/arch/powerpc/platforms/pseries/dlpar.c
index 2a783dc0cfa7..deb48b41d488 100644
--- a/arch/powerpc/platforms/pseries/dlpar.c
+++ b/arch/powerpc/platforms/pseries/dlpar.c
@@ -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: