fs: use bus_for_each_driver
Instead of using for_each_driver and testing for the bus type. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
00d996c942
commit
3b0a637921
5
fs/fs.c
5
fs/fs.c
|
@ -1269,10 +1269,7 @@ static const char *detect_fs(const char *filename)
|
||||||
if (type == filetype_unknown)
|
if (type == filetype_unknown)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
for_each_driver(drv) {
|
bus_for_each_driver(&fs_bus, drv) {
|
||||||
if (drv->bus != &fs_bus)
|
|
||||||
continue;
|
|
||||||
|
|
||||||
fdrv = drv_to_fs_driver(drv);
|
fdrv = drv_to_fs_driver(drv);
|
||||||
|
|
||||||
if (type == fdrv->type)
|
if (type == fdrv->type)
|
||||||
|
|
Loading…
Reference in New Issue