From: Artem Bityutskiy Date: Wed, 23 Jul 2008 12:51:46 +0000 (+0300) Subject: UBI: fix gcc warning X-Git-Tag: v2.6.27-rc1~223^2~1 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=eeb16e87b6747c9a4f5769f33467c9d173e9f5ee;p=linux-2.6-omap-h63xx.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 d40066833ab..3531ca9a1e2 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; }