diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-03-05 14:24:17 +0300 |
---|---|---|
committer | David Vrabel <david.vrabel@citrix.com> | 2015-03-16 14:49:15 +0000 |
commit | ebfe79a7c85c171def09ff86f6fdea254a51d6c9 (patch) | |
tree | 7866d06e9560bee83343c2b08fd20fe47d87bfdb /sound/sound_core.c | |
parent | 4e8c0c8c4bf3a5b5c98046e146ab3884bf7a7d0e (diff) |
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>
Diffstat (limited to 'sound/sound_core.c')
0 files changed, 0 insertions, 0 deletions