Dan Carpenter ebfe79a7c8 xen/mce: fix up xen_late_init_mcelog() error handling
Static checkers complain about the missing call to misc_deregister() if
bind_virq_for_mce() fails.

Also I reversed the tests so that we do error handling instead of
success handling.  That way we just have a series of function calls
instead of the more complicated nested if statements in the original
code.  Let's preserve the error codes as well.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
2015-03-16 14:49:15 +00:00
..
2015-03-02 12:08:43 -05:00
2015-02-17 09:27:54 -08:00
2015-03-06 22:35:49 +01:00
2015-02-15 10:48:44 -08:00
2015-02-03 15:48:51 -08:00
2015-02-25 11:38:46 +11:00
2015-02-03 15:58:39 -08:00
2015-02-18 09:05:48 -08:00
2015-02-04 09:15:18 +01:00
2015-03-12 09:45:46 -07:00
2015-02-17 09:38:59 -08:00
2015-02-15 10:24:55 -08:00
2015-02-18 08:40:29 +01:00
2015-02-17 09:38:59 -08:00
2015-03-08 12:25:40 -07:00
2015-02-15 10:24:55 -08:00
2015-02-03 15:58:39 -08:00