EDAC/skx_common: Delete duplicated and unreachable code
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Fri, 13 Jan 2023 03:27:59 +0000 (11:27 +0800)
committerTony Luck <tony.luck@intel.com>
Wed, 25 Jan 2023 16:16:53 +0000 (08:16 -0800)
commitd2415e2e5330fc11f4c688fa518751bdc90259f5
treef77a86db6c2c58caecf5c0e278ed435020a634c5
parent6e8746cb735166eaf3ceb086b31bb0431f5e3532
EDAC/skx_common: Delete duplicated and unreachable code

skx_mce_check_error() returns early if the error isn't from memory.
So when skx_mce_output_error() is invoked from skx_mce_check_error(),
it doesn't need to re-check whether the error is from memory. Delete
the duplicated and unreachable code from skx_mce_output_error().

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/all/20230113032802.41752-1-qiuxu.zhuo@intel.com
drivers/edac/skx_common.c