Skip to content

Commit 31f8eb7

Browse files
committed
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 <[email protected]>
1 parent 3783225 commit 31f8eb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/platforms/pseries/reconfig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ static int do_update_property(char *buf, size_t bufsize)
363363
static ssize_t ofdt_write(struct file *file, const char __user *buf, size_t count,
364364
loff_t *off)
365365
{
366-
int rv = 0;
366+
int rv;
367367
char *kbuf;
368368
char *tmp;
369369

0 commit comments

Comments
 (0)