mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +00:00
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>
This commit is contained in:
parent
3783225130
commit
31f8eb7535
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue