Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp716938pxj; Thu, 20 May 2021 20:56:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxAUnzpBxujlC8Z7a9bLxHq5NLq0f+KFG8nYBGeFxHK5eRMOXrPGBoB51Y5eg43oLly/6K9 X-Received: by 2002:a17:906:5fca:: with SMTP id k10mr8260200ejv.357.1621569360895; Thu, 20 May 2021 20:56:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621569360; cv=none; d=google.com; s=arc-20160816; b=GzkdeJbEsUxfFDCyuSK+TqoMDEbMhwxWo7siRON+JETE0/NavwMV/OBst/h1WWKD/b 364voksbsFfptIzM+zVqPsL89QWBN/oaqze7flUUjg7IOEdqTu+HjxaDad8dCjOa26Fc I9663upziwEKbnaxAoJFbzUZKlNMH0Q6pG299yvPhNTUVBRgjI7P+dtNZvzOk1ha1Kbu idlMUikieZ9CrNB3Ghj5ItvoipVNksez4+2mW/ICrlrNZ9IlFdimQRj9NKXnKVm73ghl lfTmJ1bDkQ9UQKdjP07Ez0AMhBq3Qe65ymJHZn3DWfH96e1oWI1hc06duWy68bJhHuFk qnBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=w5nWdjb90GI2+TAkol2s0H4fVYowwMJxaadOSn6QcUY=; b=AoSPpUOLeelSWBhitwPqdXMtQ/nL0pEF/1FaOfh2fr95tRicEHQF3lkRK0j4myCQ5u yWwsUQzqMCZZneAKnaEzl6UoRbMmapWi5Hrck9a0cJ9uY6OFnb8W11jlkyZgQlJU6GcF 52qQN/lRdq+VS3ZU3CH9dzK0o2VM6on0RqTwf7t9oKL9eZGoIPac8PVgZWg4kpst9cm2 CUeomfbZ+rg1cMHrarq7GJ/b+8tR8aX2RO1GCQlo2vg7qsVVNkG8f2yvvqRYZ6Q0jzyI JYaBjaOUwrFbsLsPWXhgImuaq67keeZECubBBAhgZFvpqFToLvzYrOzt8rzqDsqTij7D yZlw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECdngyCP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id b23si4453956edv.199.2021.05.20.20.55.38; Thu, 20 May 2021 20:56:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ECdngyCP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242853AbhETMpV (ORCPT + 99 others); Thu, 20 May 2021 08:45:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S242269AbhETMnm (ORCPT ); Thu, 20 May 2021 08:43:42 -0400 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [IPv6:2a00:1450:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8A28C0611AB for ; Thu, 20 May 2021 05:03:08 -0700 (PDT) Received: by mail-wr1-x431.google.com with SMTP id c14so15601913wrx.3 for ; Thu, 20 May 2021 05:03:08 -0700 (PDT) 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=w5nWdjb90GI2+TAkol2s0H4fVYowwMJxaadOSn6QcUY=; b=ECdngyCPXxuV8WED0vFl1Q/XPm49F6DBoppaIbs0HIcfo5XtnDejjHk8tkEzG01VqR VynFew87U48BK6UQOUZvX4hik/sKntYuwWjWHhskelw1Lwng6CXVxmjvJYLoh+5gDvFG wZTZ6uyJVOIYmg5bUoF2U8S961FxPN9UgvmdvJLprgOh2wDY45n4COM+p2y3GhU/jQ5e fukfyAfIzGVH+1KeEWfy8NFfvHqqUApjYjRh5l/GAxWnQZy//rm1pWAWrRvc6MU7kTp6 MRfqdYUMvpTXpajmj7WC3yZ05xkBqOBCP8CpzfWBkas8+GiV1H07tv6mi3oyarOfc3hP 4w7A== 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=w5nWdjb90GI2+TAkol2s0H4fVYowwMJxaadOSn6QcUY=; b=V2vYVfJIcfPH1H5uFubuoNtBuXBuqDS/JhVVAdWM5ejk6eAEfZKJ15iGT1JNPy8PJx b+tqWe44qK981Rn1MHUswHZIuEzwrsx2kwt2O9sizW1enrpqmyDhk3+uAN8B9GAmxd2H e5e2F0y5xs0fmwjy053Bwmhgh+rGbX+u+f6msE4gX13cZOS5Ky1S+EwL0bPepJjt75HF w0UT3iFc0U+3MC/O7Rm7VXbUnVrn51N8PApNrPybSXdR4tmX7ZpWwpLiPFJVDie9gBud mnJhhqkXJeurnXRDeeH3GK8vMUtogNQrj1ZKcgLQZRKLjTwayuONkC0RpEwHLPo87kNf B/Gw== X-Gm-Message-State: AOAM531+vOZFapFE8Zfq2dQZMLsrM0OfFQMUzfywHOvwgbM3nTfcY9Fs aOUQDLGor2H3/5MXo1CbteDd+Q== X-Received: by 2002:a5d:4b04:: with SMTP id v4mr4003474wrq.92.1621512187365; Thu, 20 May 2021 05:03:07 -0700 (PDT) Received: from dell.default ([91.110.221.215]) by smtp.gmail.com with ESMTPSA id j10sm2886332wrt.32.2021.05.20.05.03.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 May 2021 05:03:06 -0700 (PDT) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Rob Clark , Sean Paul , David Airlie , Daniel Vetter , AngeloGioacchino Del Regno , linux-arm-msm@vger.kernel.org, dri-devel@lists.freedesktop.org, freedreno@lists.freedesktop.org Subject: [PATCH 15/38] drm/msm/disp/dpu1/dpu_encoder_phys_cmd: Remove unused variable 'cmd_enc' Date: Thu, 20 May 2021 13:02:25 +0100 Message-Id: <20210520120248.3464013-16-lee.jones@linaro.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210520120248.3464013-1-lee.jones@linaro.org> References: <20210520120248.3464013-1-lee.jones@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c: In function ‘dpu_encoder_phys_cmd_wait_for_commit_done’: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c:688:31: warning: variable ‘cmd_enc’ set but not used [-Wunused-but-set-variable] Cc: Rob Clark Cc: Sean Paul Cc: David Airlie Cc: Daniel Vetter Cc: AngeloGioacchino Del Regno Cc: linux-arm-msm@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Cc: freedreno@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c index b2be39b9144e4..088900841bf8b 100644 --- a/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c +++ b/drivers/gpu/drm/msm/disp/dpu1/dpu_encoder_phys_cmd.c @@ -685,10 +685,6 @@ static int dpu_encoder_phys_cmd_wait_for_tx_complete( static int dpu_encoder_phys_cmd_wait_for_commit_done( struct dpu_encoder_phys *phys_enc) { - struct dpu_encoder_phys_cmd *cmd_enc; - - cmd_enc = to_dpu_encoder_phys_cmd(phys_enc); - /* only required for master controller */ if (!dpu_encoder_phys_cmd_is_master(phys_enc)) return 0; -- 2.31.1