瀏覽代碼

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>
Michael Ellerman 8 年之前
父節點
當前提交
31f8eb7535
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      arch/powerpc/platforms/pseries/reconfig.c

+ 1 - 1
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,
 static ssize_t ofdt_write(struct file *file, const char __user *buf, size_t count,
 			  loff_t *off)
 			  loff_t *off)
 {
 {
-	int rv = 0;
+	int rv;
 	char *kbuf;
 	char *kbuf;
 	char *tmp;
 	char *tmp;