Browse Source

UBI: fix gcc warning

Fix the following warning:

drivers/mtd/ubi/vmt.c: In function 'ubi_rename_volumes':
drivers/mtd/ubi/vmt.c:642: warning: statement with no effect

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Artem Bityutskiy 17 years ago
parent
commit
eeb16e87b6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      drivers/mtd/ubi/vmt.c

+ 1 - 1
drivers/mtd/ubi/vmt.c

@@ -639,7 +639,7 @@ int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list)
 	}
 	}
 
 
 	if (!err)
 	if (!err)
-		paranoid_check_volumes(ubi);
+		err = paranoid_check_volumes(ubi);
 	return err;
 	return err;
 }
 }