aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/reconfig.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2017-07-24 21:46:03 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2017-07-24 21:46:03 +1000
commit31f8eb753522a71e12e1c7b90c17a2b3d2a2df08 (patch)
treedba67a2cf9b96a0784569af7345c042bcf0e626c /arch/powerpc/platforms/pseries/reconfig.c
parentpowerpc/pseries: use memdup_user_nul (diff)
downloadlinux-dev-31f8eb753522a71e12e1c7b90c17a2b3d2a2df08.tar.xz
linux-dev-31f8eb753522a71e12e1c7b90c17a2b3d2a2df08.zip
powerpc/pseries: Don't needlessly initialise rv to 0
All cases initialise rv, and if they didn't that would be a bug. By dropping the initialisation we give the compiler the chance to catch those bugs for us. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms/pseries/reconfig.c')
-rw-r--r--arch/powerpc/platforms/pseries/reconfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/pseries/reconfig.c b/arch/powerpc/platforms/pseries/reconfig.c
index 431f513586a9..e6bfff8a20a4 100644
--- a/arch/powerpc/platforms/pseries/reconfig.c
+++ b/arch/powerpc/platforms/pseries/reconfig.c
@@ -363,7 +363,7 @@ static int do_update_property(char *buf, size_t bufsize)
static ssize_t ofdt_write(struct file *file, const char __user *buf, size_t count,
loff_t *off)
{
- int rv = 0;
+ int rv;
char *kbuf;
char *tmp;