[PATCH V4 2/3 RESEND] MCE: do code refactor of soft_offline_page

2012-12-13 Thread Xishi Qiu
There are too many return points randomly intermingled with some "goto done" return points. So adjust the function structure, one for the success path, the other for the failure path. Use atomic_long_inc instead of atomic_long_add. Signed-off-by: Xishi Qiu Signed-off-by: Jiang Liu Suggested-by:

[PATCH V4 2/3 RESEND] MCE: do code refactor of soft_offline_page

2012-12-13 Thread Xishi Qiu
There are too many return points randomly intermingled with some goto done return points. So adjust the function structure, one for the success path, the other for the failure path. Use atomic_long_inc instead of atomic_long_add. Signed-off-by: Xishi Qiu qiuxi...@huawei.com Signed-off-by: Jiang