From patchwork Wed Oct 5 10:28:11 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 9362715 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 0B2136077E for ; Wed, 5 Oct 2016 10:28:21 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E7B572624C for ; Wed, 5 Oct 2016 10:28:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DA0B425250; Wed, 5 Oct 2016 10:28:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6FAA325250 for ; Wed, 5 Oct 2016 10:28:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751702AbcJEK2T (ORCPT ); Wed, 5 Oct 2016 06:28:19 -0400 Received: from galahad.ideasonboard.com ([185.26.127.97]:52617 "EHLO galahad.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751126AbcJEK2T (ORCPT ); Wed, 5 Oct 2016 06:28:19 -0400 Received: from avalon.ideasonboard.com (unknown [90.63.244.31]) by galahad.ideasonboard.com (Postfix) with ESMTPSA id 52F9D20010; Wed, 5 Oct 2016 12:27:36 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1475663256; bh=8xftW37V3GWxJtviahI2tPw9RR7EU3YwAG+x+z+7ugQ=; h=From:To:Cc:Subject:Date:From; b=YBFQw/MpcaOuUZnppnxfufuKGQBKdYHAHZyFUWGNlSv8YMo58yS7EbwQUCHQec8f2 6/qWZIEAv59txFXaFBVLRXvQiVWeiEP+nG4382TB42L17t81kRjStQTO9xeQOEPSYf uQnobaVLkIBxhS5ejBFIk+8QZelNmMYm5YtTYbt8= From: Laurent Pinchart To: linux-renesas-soc@vger.kernel.org Cc: Magnus Damm Subject: [PATCH] ARM: shmobile: Remove unneeded check in SMP initialization Date: Wed, 5 Oct 2016 13:28:11 +0300 Message-Id: <1475663291-4502-1-git-send-email-laurent.pinchart+renesas@ideasonboard.com> X-Mailer: git-send-email 2.7.3 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP The SMP initialization function is only called if CONFIG_SMP is defined. Remove the duplicate check. Signed-off-by: Laurent Pinchart --- arch/arm/mach-shmobile/platsmp.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/arch/arm/mach-shmobile/platsmp.c b/arch/arm/mach-shmobile/platsmp.c index 02e21bceb085..48595a397220 100644 --- a/arch/arm/mach-shmobile/platsmp.c +++ b/arch/arm/mach-shmobile/platsmp.c @@ -39,9 +39,5 @@ bool shmobile_smp_cpu_can_disable(unsigned int cpu) bool __init shmobile_smp_init_fallback_ops(void) { - /* fallback on PSCI/smp_ops if no other DT based method is detected */ - if (!IS_ENABLED(CONFIG_SMP)) - return false; - return platform_can_secondary_boot() ? true : false; }