commit | b96bf4c33d4860bf1584ad2f9ed3b783d79aada8 | [log] [tgz] |
---|---|---|
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Sun Dec 16 13:01:03 2007 +0200 |
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | Wed Dec 26 19:15:15 2007 +0200 |
tree | 30eb7bd3d0de569dd5087b62aa11520d1490c7a6 | |
parent | 06b68ba15671f32a3aa3bbddf04b0d2dd7fbf902 [diff] [blame] |
UBI: remove ubi_devices_cnt This global variablea is not really needed, remove it Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index 12777da..7697eda 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c
@@ -60,7 +60,7 @@ { int i; - for (i = 0; i < ubi_devices_cnt; i++) + for (i = 0; i < UBI_MAX_DEVICES; i++) if (ubi_devices[i] && MAJOR(ubi_devices[i]->cdev.dev) == major) return ubi_devices[i]; BUG();