From 3b0a637921919bff1dfda6c1e204c6b30f6e8ca3 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 27 Sep 2013 23:00:45 +0200 Subject: [PATCH] fs: use bus_for_each_driver Instead of using for_each_driver and testing for the bus type. Signed-off-by: Sascha Hauer --- fs/fs.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/fs/fs.c b/fs/fs.c index 4618b4fdc..3434134e9 100644 --- a/fs/fs.c +++ b/fs/fs.c @@ -1269,10 +1269,7 @@ static const char *detect_fs(const char *filename) if (type == filetype_unknown) return NULL; - for_each_driver(drv) { - if (drv->bus != &fs_bus) - continue; - + bus_for_each_driver(&fs_bus, drv) { fdrv = drv_to_fs_driver(drv); if (type == fdrv->type)