UBI: remove redundant field
Remove redundant ubi->major field - we have it in ubi->cdev.dev already. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
This commit is contained in:
@@ -61,7 +61,7 @@ static struct ubi_device *major_to_device(int major)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < ubi_devices_cnt; i++)
|
||||
if (ubi_devices[i] && ubi_devices[i]->major == major)
|
||||
if (ubi_devices[i] && MAJOR(ubi_devices[i]->cdev.dev) == major)
|
||||
return ubi_devices[i];
|
||||
BUG();
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user