aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mtd/ubi/kapi.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mtd/ubi/kapi.c')
-rw-r--r--drivers/mtd/ubi/kapi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mtd/ubi/kapi.c b/drivers/mtd/ubi/kapi.c
index 78cae4940875..4a458e83e4e9 100644
--- a/drivers/mtd/ubi/kapi.c
+++ b/drivers/mtd/ubi/kapi.c
@@ -38,9 +38,8 @@ int ubi_get_device_info(int ubi_num, struct ubi_device_info *di)
38 const struct ubi_device *ubi; 38 const struct ubi_device *ubi;
39 39
40 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES || 40 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES ||
41 !ubi_devices[ubi_num]) { 41 !ubi_devices[ubi_num])
42 return -ENODEV; 42 return -ENODEV;
43 }
44 43
45 ubi = ubi_devices[ubi_num]; 44 ubi = ubi_devices[ubi_num];
46 di->ubi_num = ubi->ubi_num; 45 di->ubi_num = ubi->ubi_num;