提交 fc398769 编写于 作者: S S.Çağlar Onur 提交者: Artem Bityutskiy

UBI: silence warning

drivers/mtd/ubi/vmt.c: In function `ubi_create_volume':
drivers/mtd/ubi/vmt.c:379: warning: statement with no effect
Signed-off-by: NS.Çağlar Onur <caglar@pardus.org.tr>
Signed-off-by: NArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
上级 bfa274e2
......@@ -376,7 +376,9 @@ int ubi_create_volume(struct ubi_device *ubi, struct ubi_mkvol_req *req)
get_device(&vol->dev);
volume_sysfs_close(vol);
out_gluebi:
ubi_destroy_gluebi(vol);
if (ubi_destroy_gluebi(vol))
dbg_err("cannot destroy gluebi for volume %d:%d",
ubi->ubi_num, vol_id);
out_cdev:
cdev_del(&vol->cdev);
out_mapping:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册