Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936763Ab3DJKZN (ORCPT ); Wed, 10 Apr 2013 06:25:13 -0400 Received: from szxga01-in.huawei.com ([119.145.14.64]:44265 "EHLO szxga01-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936027Ab3DJKZK (ORCPT ); Wed, 10 Apr 2013 06:25:10 -0400 From: Hanjun Guo To: CC: Toshi Kani , Jiang Liu , , Subject: [PATCH 3/4] ACPI: Untangle a return statement for better readability Date: Wed, 10 Apr 2013 18:23:00 +0800 Message-ID: <1365589381-5624-4-git-send-email-guohanjun@huawei.com> X-Mailer: git-send-email 1.7.10.msysgit.1 In-Reply-To: <1365589381-5624-1-git-send-email-guohanjun@huawei.com> References: <1365589381-5624-1-git-send-email-guohanjun@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.135.68.124] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1144 Lines: 47 From: Thomas Renninger mainline inclusion from mainline-3.6 upstream commit f3946fb6e50b750d34f445188fa6746d14596afa category: cleanup This patch is cleanup patch, but the next bugfix patch is upon it. -------------------------------------------------------- No functional change. Signed-off-by: Thomas Renninger Signed-off-by: Len Brown Integrated-by: Hanjun Guo --- drivers/acpi/numa.c | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/acpi/numa.c b/drivers/acpi/numa.c index e56f3be..2a63993 100644 --- a/drivers/acpi/numa.c +++ b/drivers/acpi/numa.c @@ -304,8 +304,10 @@ int __init acpi_numa_init(void) acpi_numa_arch_fixup(); - if (cnt <= 0) - return cnt ?: -ENOENT; + if (cnt < 0) + return cnt; + else if (cnt == 0) + return -ENOENT; return 0; } -- 1.6.0.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/