diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-16 06:01:03 -0500 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2007-12-26 12:15:15 -0500 |
commit | b96bf4c33d4860bf1584ad2f9ed3b783d79aada8 (patch) | |
tree | 30eb7bd3d0de569dd5087b62aa11520d1490c7a6 /drivers/mtd/ubi/cdev.c | |
parent | 06b68ba15671f32a3aa3bbddf04b0d2dd7fbf902 (diff) |
UBI: remove ubi_devices_cnt
This global variablea is not really needed, remove it
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'drivers/mtd/ubi/cdev.c')
-rw-r--r-- | drivers/mtd/ubi/cdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/ubi/cdev.c b/drivers/mtd/ubi/cdev.c index 12777da47d3b..7697eda2d58c 100644 --- a/drivers/mtd/ubi/cdev.c +++ b/drivers/mtd/ubi/cdev.c | |||
@@ -60,7 +60,7 @@ static struct ubi_device *major_to_device(int major) | |||
60 | { | 60 | { |
61 | int i; | 61 | int i; |
62 | 62 | ||
63 | for (i = 0; i < ubi_devices_cnt; i++) | 63 | for (i = 0; i < UBI_MAX_DEVICES; i++) |
64 | if (ubi_devices[i] && MAJOR(ubi_devices[i]->cdev.dev) == major) | 64 | if (ubi_devices[i] && MAJOR(ubi_devices[i]->cdev.dev) == major) |
65 | return ubi_devices[i]; | 65 | return ubi_devices[i]; |
66 | BUG(); | 66 | BUG(); |