From patchwork Tue Nov 3 15:28:22 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11878117 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 41851C2D0A3 for ; Tue, 3 Nov 2020 15:33:46 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id CFD3520735 for ; Tue, 3 Nov 2020 15:33:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="goEbIjTf"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="L81ntYaH" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CFD3520735 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=up4GKeKl8rOox1tjAJQHa4sT8Wm5zcjMWkwqbhu5sXo=; b=goEbIjTfOGAdkGuN7D+Tr2Hpw VvGTSh8A8XjYxU3F0I9K9qV8fvtiNIrKJ+wuC2gnG1HnI6SWwnDBP06mfT6K0pr1K6tkUMXJ1z6g3 p7w1UsCjojfFhEZ7hOtjBfiw73H93wzdz+gImW47GYIfOi4WqBvQ1COTZ37QHGZ4J2rJrq0Hpzfy5 yIaPmOqv+7ApadaCRF5lH1FT+SPKrGM5IA6hIm//+TOUKmSkBma0Ech3shV1sXjk+WcoDkq3cvMXn wE3EVfCCwnur98ay9b19e1kEhmaxAmCTRLZ0M+/PWeUZnPfP1EII82CGAiHkFXOxAQVDsPDF8CO+Y IaMwrMVZA==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZyIT-0002xG-Qo; Tue, 03 Nov 2020 15:32:34 +0000 Received: from mail-wr1-x444.google.com ([2a00:1450:4864:20::444]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kZyFP-0001m2-0O for linux-arm-kernel@lists.infradead.org; Tue, 03 Nov 2020 15:29:31 +0000 Received: by mail-wr1-x444.google.com with SMTP id g12so18979585wrp.10 for ; Tue, 03 Nov 2020 07:29:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=zC5D2p/xr7Fk60uw7MynDrZ9h8BCpXQy0RvjfGe+1nQ=; b=L81ntYaHpJVSVMwlmCDVHWhzMT5mZEkEYb3TfZT54dRDZbF/2fAmBH/tYn+EHe8f/N qRqOBPhCq5HPuPqW3ZywOTOxQ/e2lhdmE92/+ffTDLoPus0xSi9MrD8xsJcbflQ6skHS 7oIVUwnfoczrgMSgnR4f1zsJcYliqfJTnCV28/GbcBMWs7zOUEsUkOvl9U3FgQginXRa /iF9OQSomCNG16BNWWmuvQ1a4rfE0oxUJF+Bua0lGe/lL/rbwRmbzWkAPzkVi8Hr8Ulw xCX0khVc7K7QxFb9AxfZpoTNOm9Cx7N16w3iEjaB0DZz+oVcSqUTWfeCLWPvefLn0gSB 2Fcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=zC5D2p/xr7Fk60uw7MynDrZ9h8BCpXQy0RvjfGe+1nQ=; b=QzaOjjKl0M+jdDEV/Hj6lR4AmOfjmeWKdpXAcHiWKsnqB01uEojix+VqAy9eUhlP0X 39pOuHa16h4KQiwYfYPV+TP4QPa8K0iYlWKx0HW5FL+/s0mX/CQLeZdmm2ciWQ9Mn5En sUzl9tQ5BjMOlr121gI3XmFhvxtKbSCK+8n71L3fQoL+631QIH3UFHnOMAdp8fWphQPm +c+a2bqHAiK025HByEd9lYpH4ODPtduBC21stIx+c30gG5l0O8ugMStLzj57tnZIlu7P Uqk8o4Xc6pFrHJvz+SUiR/Og/2npXaNl7aSz1o7zCoI+KdPJj+lJfniXn516pqnNxOr/ LXTA== X-Gm-Message-State: AOAM530QXJE63j4rRiWDPyHTZgMBgNgx3BbDH0lGyzZR1isokv8MetCp qtikxYi+ryzHjzPBJlQ6zNJxQw== X-Google-Smtp-Source: ABdhPJwedN3NHZaPzKkzJC8epN0pbExQPzAYf4Qio8MK0dC0y0OkpHqydACglCuTMBSdkqkxI7grAQ== X-Received: by 2002:adf:92e7:: with SMTP id 94mr28774236wrn.271.1604417362112; Tue, 03 Nov 2020 07:29:22 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id j127sm3491779wma.31.2020.11.03.07.29.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 03 Nov 2020 07:29:21 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 09/25] soc: ti: pm33xx: Remove set but unused variable 'ret' Date: Tue, 3 Nov 2020 15:28:22 +0000 Message-Id: <20201103152838.1290217-10-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201103152838.1290217-1-lee.jones@linaro.org> References: <20201103152838.1290217-1-lee.jones@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20201103_102924_443393_8D747F9F X-CRM114-Status: GOOD ( 12.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Santosh Shilimkar Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Fixes the following W=1 kernel build warning(s): drivers/soc/ti/pm33xx.c: In function ‘am33xx_do_sram_idle’: drivers/soc/ti/pm33xx.c:138:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] Cc: Santosh Shilimkar Signed-off-by: Lee Jones --- drivers/soc/ti/pm33xx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/soc/ti/pm33xx.c b/drivers/soc/ti/pm33xx.c index d2f5e7001a93c..9c0670ab6be6f 100644 --- a/drivers/soc/ti/pm33xx.c +++ b/drivers/soc/ti/pm33xx.c @@ -135,13 +135,11 @@ static int am33xx_push_sram_idle(void) static int am33xx_do_sram_idle(u32 wfi_flags) { - int ret = 0; - if (!m3_ipc || !pm_ops) return 0; if (wfi_flags & WFI_FLAG_WAKE_M3) - ret = m3_ipc->ops->prepare_low_power(m3_ipc, WKUP_M3_IDLE); + m3_ipc->ops->prepare_low_power(m3_ipc, WKUP_M3_IDLE); return pm_ops->cpu_suspend(am33xx_do_wfi_sram, wfi_flags); }