From: Dan Carpenter Date: Thu, 5 Mar 2015 11:24:17 +0000 (+0300) Subject: xen/mce: fix up xen_late_init_mcelog() error handling X-Git-Tag: omap-for-v4.2/o2_dc~114^2~6 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ebfe79a7c85c171def09ff86f6fdea254a51d6c9;p=pandora-kernel.git 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 Reviewed-by: Konrad Rzeszutek Wilk Signed-off-by: David Vrabel --- Reading git-diff-tree failed