UBI: fix gcc warning
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Jul 25 10:59:05 EDT 2008
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=eeb16e87b6747c9a4f5769f33467c9d173e9f5ee
Commit: eeb16e87b6747c9a4f5769f33467c9d173e9f5ee
Parent: 9869cd801c107bbae91663c3f4edbb6b5715919f
Author: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
AuthorDate: Wed Jul 23 15:51:46 2008 +0300
Committer: Artem Bityutskiy <Artem.Bityutskiy at nokia.com>
CommitDate: Thu Jul 24 13:36:10 2008 +0300
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 at nokia.com>
---
drivers/mtd/ubi/vmt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c
index d400668..3531ca9 100644
--- a/drivers/mtd/ubi/vmt.c
+++ b/drivers/mtd/ubi/vmt.c
@@ -639,7 +639,7 @@ int ubi_rename_volumes(struct ubi_device *ubi, struct list_head *rename_list)
}
if (!err)
- paranoid_check_volumes(ubi);
+ err = paranoid_check_volumes(ubi);
return err;
}
More information about the linux-mtd-cvs
mailing list