lkml.org 
[lkml]   [2012]   [Dec]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V4 2/3] MCE: fix an error of mce_bad_pages statistics
>  	if (PageHWPoison(hpage)) {
> pr_info("soft offline: %#lx hugepage already poisoned\n", pfn);
> - return -EBUSY;
> + ret = -EBUSY;
> + goto out;


Doesn't look like a code improvement to me. Single return is easier and
simpler.

-Andi

> +out:
> return ret;
> }
> --
> 1.7.1
>
>

--
ak@linux.intel.com -- Speaking for myself only.


\
 
 \ /
  Last update: 2012-12-12 05:41    [W:0.777 / U:0.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site