]> git.ozlabs.org Git - petitboot/commitdiff
discover: simplify handler switch statement
authorJeremy Kerr <jk@ozlabs.org>
Tue, 5 Mar 2013 05:49:15 +0000 (13:49 +0800)
committerGeoff Levand <geoff@infradead.org>
Tue, 5 Mar 2013 14:06:17 +0000 (06:06 -0800)
Instead of using nested switch statements in device_handler_event,
define an array of handlers, and lookup instead.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Geoff Levand <geoff@infradead.org>

No differences found