From patchwork Mon Nov 9 21:18:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320982 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp3000321ejb; Mon, 9 Nov 2020 13:19:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJxa9KbNNzt1EiBtFSBKDM+XUA/P1YTpnCDnp8VH02w4JLratIl1fd9G/bws+0G9E83X0D1q X-Received: by 2002:a50:e789:: with SMTP id b9mr17440040edn.272.1604956765140; Mon, 09 Nov 2020 13:19:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604956765; cv=none; d=google.com; s=arc-20160816; b=ODVRlFCXbvZeLIl+Z1WiyZIQVIcrVjjMySFfpMNpphztEDxl0VC3BF1N1bLPQTPUIx XkzwHmtzZDgwdV/mQq8HFeWZwEVOveo6nFsWAOw3yRNvx6qXh5NMt+uSwoisTMzdMxUh glJZ1CZ4E7fTPGFkc1fwswoXto/zFYmrskiBWPwKRWstJTsBbw+1XEJyrU0O4Jkre20R TeC9b5UYR637oJZXUUlaWwO97avu1rHiR1ClphZdhurmxgZlM45vKg7XAGMaJcu4YoCB JUZc5Szpc6PidPDJ2cpDOtjuwXL+uhifz6Z7sSl9FngKr2xfklB7+PsyZ9gAIK3hnj0h bCNQ== 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=mzXhCpiCwfXhn5UZVrUN8y55iF7Guz7qLR0QXW6Magc=; b=pO74n4RkvharQmtnT4Z5Rq6WAtpKLNXJasZ6PxZIiGZr/7WtThnbQ8Yh88N0Ud+EeV s8eeQX0n5vkbtaI285r3xWxR9q8bcJV6XOD7tkBUKYBGynmGMVhcJgHamx5yoL3obdaa 9VmnvZjPlpf2C6TGOzdTGhEbxKe76teMqeIiKbZV7G7bJ2oUk5Lj8MES+FTT19JmNLS/ DWbYtS+tgi8gvFUkBm4ibq7KBBH2HewF5yhvIxyq5KmSOLyv9K7js+hd3r7PPrZVrw1Q eUC2dwcNcQEINqoji8tVkYVttNBfpgGxR1WQN2cCtPSaG0VbazL3rTCYpwpo3KiTsBF8 YqmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9yOQdMh; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 r11si7897428edi.348.2020.11.09.13.19.24; Mon, 09 Nov 2020 13:19:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-media-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=E9yOQdMh; spf=pass (google.com: domain of linux-media-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-media-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 S1731197AbgKIVTY (ORCPT + 4 others); Mon, 9 Nov 2020 16:19:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42132 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731022AbgKIVTX (ORCPT ); Mon, 9 Nov 2020 16:19:23 -0500 Received: from mail-wm1-x344.google.com (mail-wm1-x344.google.com [IPv6:2a00:1450:4864:20::344]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8A825C0613CF for ; Mon, 9 Nov 2020 13:19:22 -0800 (PST) Received: by mail-wm1-x344.google.com with SMTP id t67so902392wmt.5 for ; Mon, 09 Nov 2020 13:19: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=mzXhCpiCwfXhn5UZVrUN8y55iF7Guz7qLR0QXW6Magc=; b=E9yOQdMhotNG/FmE2dQJiD0qZR2wVPwJ5vehlHuLTLfjg1jR9o5wsvjApIc0HsAoaZ 8qkna1nD8pDl/vM/3OBHtp/FmUb2nst5uLUBWgGS6fKuFHw/7kaia+s30iU85HXrgJ2d W+AsyMp7+7a2eiwEY49kWaRTKHSfjRPq/fnNRWjEYHm29TrLP53ZF7vB0FubYev+Fb2b Zh7m6Bpat6KyzNntvJ5HdJsheSg03sQOSHUslkzMUOhFnBsVIscuSdJVUrqOivIRbb21 wGeWuPmoWkWfZSKBsErebYJ/J5S6cHJnNh+7AOgnAtr0I/PNy+e4jUw2i/WQqXZ1HpP8 BmOw== 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=mzXhCpiCwfXhn5UZVrUN8y55iF7Guz7qLR0QXW6Magc=; b=Z7aj46DY/YC3s0vfhh2SAhXYKUOuqLPp4aEbGdHzUmZdcJe+1v77GGi7AgbtrW6SyB YUTeompQKQf7/tyqNxqc441RHriOv61TKfMdvtz1v22pz3qMXPwvHYDgLIQELxb0kp06 ODTVrJs2fcqhV4CUaHetD9+OoedjLeqht6KFRIhxZ7Z7OZzNwjkLO0dHJoUQjOYHCgKD Ct7Jc0ojxo4a0YcPnqBZWJB5/qDScswSY+RtFdRGGzkrPpdEgUCGAvieru0NIhJDAFKt Uxg2cZ91B0RbOZgUHaxrtzJw0HKRTBpJ522zIzbtJtDrYU47hqB0DiuqvSH1//leD/fV iybQ== X-Gm-Message-State: AOAM530uKK2iI9bJsWFSuoiZMTJ8Y/P7+N5c+L/dof4BQC9wDZPQ8Kyg Qdy+zD7G4vSSbDF8hBVSyqOFTw== X-Received: by 2002:a7b:c5c3:: with SMTP id n3mr1133832wmk.44.1604956761276; Mon, 09 Nov 2020 13:19:21 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 71sm15170630wrm.20.2020.11.09.13.19.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:20 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6n?= =?utf-8?q?ig?= , David Airlie , Daniel Vetter , Sumit Semwal , report to , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.linaro.org Subject: [PATCH 07/20] drm/radeon/radeon_display: Remove unused variable 'mod' Date: Mon, 9 Nov 2020 21:18:42 +0000 Message-Id: <20201109211855.3340030-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201109211855.3340030-1-lee.jones@linaro.org> References: <20201109211855.3340030-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/radeon_display.c: In function ‘radeon_div’: drivers/gpu/drm/radeon/radeon_display.c:1094:11: warning: variable ‘mod’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: report to Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/radeon_display.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) -- 2.25.1 diff --git a/drivers/gpu/drm/radeon/radeon_display.c b/drivers/gpu/drm/radeon/radeon_display.c index bd60f16fd0d78..78fceedfd9255 100644 --- a/drivers/gpu/drm/radeon/radeon_display.c +++ b/drivers/gpu/drm/radeon/radeon_display.c @@ -1091,11 +1091,9 @@ void radeon_compute_pll_avivo(struct radeon_pll *pll, /* pre-avivo */ static inline uint32_t radeon_div(uint64_t n, uint32_t d) { - uint64_t mod; - n += d / 2; - mod = do_div(n, d); + do_div(n, d); return n; }