Re: [PATCH V4 2/3] MCE: fix an error of mce_bad_pages statistics

From: Andi Kleen
Date: Tue Dec 11 2012 - 23:23:10 EST


> 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@xxxxxxxxxxxxxxx -- Speaking for myself only.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/