]> err.no Git - linux-2.6/commitdiff
UBI: fix gcc warning
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 23 Jul 2008 12:51:46 +0000 (15:51 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Jul 2008 10:36:10 +0000 (13:36 +0300)
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>
drivers/mtd/ubi/vmt.c

index d40066833abb2c0687f1ff6c5050c8f939dd69da..3531ca9a1e24e9ec4721b21eea4a7c77244d7db8 100644 (file)
@@ -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;
 }