]> git.dujemihanovic.xyz Git - u-boot.git/commit
fs: Use filesystem methods instead of switch()
authorSimon Glass <sjg@chromium.org>
Wed, 26 Dec 2012 09:53:30 +0000 (09:53 +0000)
committerTom Rini <trini@ti.com>
Mon, 4 Mar 2013 19:19:56 +0000 (14:19 -0500)
commitc6f548d232c47a1691124d05c90fe9fb652e6874
tree3e84bee29b963c6b158a20d6a7fc438fc079a2ef
parent436e2b731979afc904b2a39f1b2fbb2370f08cb4
fs: Use filesystem methods instead of switch()

We can use the available methods and avoid using switch(). When the
filesystem is not supported, we fall through to the 'unsupported'
methods: fs_probe_unsupported() prints an error, so the others do
not need to.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@ti.com>
fs/fs.c