From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VQDsU-0002M8-0G for barebox@lists.infradead.org; Sun, 29 Sep 2013 10:05:29 +0000 From: Sascha Hauer Date: Sun, 29 Sep 2013 12:04:55 +0200 Message-Id: <1380449100-6295-5-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1380449100-6295-1-git-send-email-s.hauer@pengutronix.de> References: <1380449100-6295-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 4/9] fs: use bus_for_each_driver To: barebox@lists.infradead.org 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 4618b4f..3434134 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) -- 1.8.4.rc3 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox