Skip to content

Commit

Permalink
powerpc/pseries: Don't needlessly initialise rv to 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Ellerman committed Jul 24, 2017
1 parent 3783225 commit 31f8eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/platforms/pseries/reconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 31f8eb7

Please sign in to comment.