UBI: fix error message
The ubi_err() macro will add \n. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
parent
a6ea440769
commit
bb84c1a199
1 changed files with 1 additions and 1 deletions
|
@ -299,7 +299,7 @@ int ubi_create_gluebi(struct ubi_device *ubi, struct ubi_volume *vol)
|
||||||
mtd->size = vol->used_bytes;
|
mtd->size = vol->used_bytes;
|
||||||
|
|
||||||
if (add_mtd_device(mtd)) {
|
if (add_mtd_device(mtd)) {
|
||||||
ubi_err("cannot not add MTD device\n");
|
ubi_err("cannot not add MTD device");
|
||||||
kfree(mtd->name);
|
kfree(mtd->name);
|
||||||
return -ENFILE;
|
return -ENFILE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue