From patchwork Thu Nov 12 19:00:38 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324247 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp589594ils; Thu, 12 Nov 2020 11:01:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJyFW+vG/Ael0z/17+58lmTh6EwGNph+5qlDv6wQTcdE0F9VQWhhNzsWusfGDvfEJq6iVxtX X-Received: by 2002:a17:902:6b46:b029:d6:e5c6:b3bc with SMTP id g6-20020a1709026b46b02900d6e5c6b3bcmr728363plt.64.1605207716609; Thu, 12 Nov 2020 11:01:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605207716; cv=none; d=google.com; s=arc-20160816; b=QnpaYXjdjckMhAYMoPWaiHsQst4yygutQcbopZAMn/Xv7GJDcrNrkYw05JBqPZgNke SlmC7pwD9b0GuwQjhf2W/HVsS/QO5JLSAqJIpEaaGZCc4o2zic0OB4fy9+wOgvhczhGR 6G5ZPLrWFb2/JQa7d5Ux8tkq7ZoRFyiAUjNZZ2TgGk2aXKOfcgt8H+ygYL9nyfbZ5BCQ tzdLGcwLsp3vJ1BIuuTlWeRJgMoMu9xd/27CMDmhXfxUiRA3RQJsVdJgTb8TjYPod8AD WKsqaP9yU730y3EjuZnM91ZTLJ0Ma7ygdG+pw0Xqa3IVnHG/quiCubER0Ilg8DsX5C/t QWOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=6GIJ76lXjnHZWyQ1Y6C01DqAolf6SVEik4QNgXyIhgg=; b=ThKb+92j1u06zFfcszSSAHobirFLBNbfleMFxyokfpKwU1rBdFvyXTtMx+qqSaFTTo HE/kX6OPIGDoUslHO9vp95FkV/vXPctAHIEosgAWntNCeinhLpjd3b7Bwim+xz+9cmG5 A3YILC2Z6hTqYdvt4CH8UTOlHaQWPf0hvzIUfQIBisF3sRgkdFwy4mfrzYIawYoRproa YTvcWEn+bbdaRf7ntyToMcmtLzJ1xOJ86d7tLxO0+kuN2K/Wvw7Y4/AWXkpnl6ZBM3bL UopFnMdQST1G8Icxi8Gm3MQJzbHMgaaNnuuAOONgb1seNTH5fupLyD107FOp0ZiOtW2w sz8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vq4ZP2TV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id be3si5522656plb.73.2020.11.12.11.01.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:56 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=vq4ZP2TV; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 65CFB6E3E5; Thu, 12 Nov 2020 19:01:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D9506E3E5 for ; Thu, 12 Nov 2020 19:01:51 +0000 (UTC) Received: by mail-wr1-x441.google.com with SMTP id p1so7128568wrf.12 for ; Thu, 12 Nov 2020 11:01:51 -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=LK83PtW9bWg13v6GeG4X98Td032TuGFWFjyFs29+ymI=; b=vq4ZP2TVmSqBWCOE1Wu+ytkEKp2xRQfUssN2R6DGgz8tFeRWOgvoEvdWsZE8eSlmzX T7oLXH66Lae/Qr3uAOim8byoaRyb2q3k1zhgoit1n1huKS46ig4/cKUNdvroiUKa/I6u 8RlUhEltZ4fv7QkMnn8qg5Et2eUaCE5zH1UHNRevW64lB/xOIJYt63WmEwYZi//AB+2V 8sRr68YKSZyT5rl6FSfWtakQZ2iKFLJCyzXGyqBj4oUEsvSCHlMgnamLIx/7sEwt23rj WvRMy83ztza+CoIFdi9oVXtjeaJuN//QojE3MCEUeE7da8G4FVpucVGnWk3KSi0H8l0q TJQg== 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=LK83PtW9bWg13v6GeG4X98Td032TuGFWFjyFs29+ymI=; b=oREEWCBdlCK+LvknH0odffpS1dDuZxU/t4kk7xQng+0Zb+KzTazzBplhTnCQAgvV76 pmvhdpjp+PT9mT+BnO5m03d7ADi/sHi0f39sj5gjkZq87149/fRu+Jy+dcQbab8JFjO5 recOYkcfNqNjxO9TkU8BLz0fi2Edp78IYQBdk780fy8FEgTn6F3AzQRm377zUdfhzKKa OgHaMndyjusYUswWexqORCWs2KxexVZvefl8SIdHgcfOCP9LqKxFXkpX/ADkh+Zzi2uT v+jjEKoDR2Mmli1HJdlpKm18hj9Gi3mR4Us/rRlH5I94Rd+BFZQ9/BXlegZCNMzN7NcM R4xA== X-Gm-Message-State: AOAM531UKO81W+gufsplAC+1BLJpHtAI7yV8uk/n/+FXjEIMLhvVQY4j cGt90hOKvNkiExmExYUG+GuOPw== X-Received: by 2002:a5d:514a:: with SMTP id u10mr1112855wrt.312.1605207709781; Thu, 12 Nov 2020 11:01:49 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id p4sm8105214wrm.51.2020.11.12.11.01.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:01:49 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 29/30] drm/amd/amdgpu/atombios_encoders: Remove set but unused variable 'backlight_level' Date: Thu, 12 Nov 2020 19:00:38 +0000 Message-Id: <20201112190039.2785914-30-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112190039.2785914-1-lee.jones@linaro.org> References: <20201112190039.2785914-1-lee.jones@linaro.org> MIME-Version: 1.0 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: David Airlie , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Luben Tuikov , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/atombios_encoders.c: In function ‘amdgpu_atombios_encoder_init_backlight’: drivers/gpu/drm/amd/amdgpu/atombios_encoders.c:174:5: warning: variable ‘backlight_level’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Luben Tuikov Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/amdgpu/atombios_encoders.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c index fa817ebff9804..af87505ad7d57 100644 --- a/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c +++ b/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c @@ -171,7 +171,6 @@ void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encode struct backlight_properties props; struct amdgpu_backlight_privdata *pdata; struct amdgpu_encoder_atom_dig *dig; - u8 backlight_level; char bl_name[16]; /* Mac laptops with multiple GPUs use the gmux driver for backlight @@ -207,7 +206,7 @@ void amdgpu_atombios_encoder_init_backlight(struct amdgpu_encoder *amdgpu_encode pdata->encoder = amdgpu_encoder; - backlight_level = amdgpu_atombios_encoder_get_backlight_level_from_reg(adev); + amdgpu_atombios_encoder_get_backlight_level_from_reg(adev); dig = amdgpu_encoder->enc_priv; dig->bl_dev = bd;