From: Artem Bityutskiy Date: Wed, 23 Jul 2008 12:51:46 +0000 (+0300) Subject: UBI: fix gcc warning X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=eeb16e87b6747c9a4f5769f33467c9d173e9f5ee;p=linux-beck.git 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 --- diff --git a/drivers/mtd/ubi/vmt.c b/drivers/mtd/ubi/vmt.c index d40066833abb..3531ca9a1e24 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; }