Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp6873627ybc; Thu, 28 Nov 2019 06:59:14 -0800 (PST) X-Google-Smtp-Source: APXvYqysgtsx15dDW+q9FKyKfMQdMPj94JIJ3s2rwilk07XJD35yLi2OAB524ZNMAEqc6fYigmUR X-Received: by 2002:a17:906:2898:: with SMTP id o24mr31906398ejd.102.1574953154006; Thu, 28 Nov 2019 06:59:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574953153; cv=none; d=google.com; s=arc-20160816; b=hLL6ErzVmtJgxPg8DaClLEtinOXg75XOJlO9e9n4pz8eNBbA8ckNYBRgaHzT8QaDIv PhlOnPxtBnmkr8Ob0OuOMjH1lW26Hr07I0EA/kDamIg+uUB8Zj4Q5CcMzZeQd223wdX6 0P8/+u7bFV+UKK1y1GVyz0M3m3oBxFlAi3C5WdPc5P9U8SjaCZgZzjQPg+VOcNoF2dSP A7R8I1BNgoIxapiI1DwtekHx2WOYiwDI+xVPVtu1zwnKiwyYp1bFJZEKcxBgayuHthPP Ea8w4I+c5YNY3SPMNU4pAmKkf5fumN8t9CZgD0i3C/HzKcUpm2ZxgQa/IlHnuMbejp1e CiFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=FmgfMIRsfesacuqaAWdy4m11iy4kXtcqJGU2jE1ib94=; b=c+E8dfulUoJFtwguy15JsaWeReXSRGKGPDm20A8B34GKX12Sr73eFowd/SZ9KfcEnV 2uZdwJ2hK1Euv9Zn7s8uFydx66KxZx85TXA0oieUR/rOvaDjelf0tM5i6pGt6a4ubGSz +3TFlYTwGW0MWY5Idhb12C4+r2EfHxDIX/4wrMCPeOfWOX9V2WgoCuQDHY1Y7xjXCLnD /hkRjyFDijIiBQaxthYCZLfBwckTmGrX/BHyaqP0Ib9imITGLuo53f8Td9f04jPzbKYj Y1CZ234eJkrEbkVq9s4XaeasM3uZD2IUjbpR2IcSeDk9fedFkmArvsWThucnWFOST0ZR chRA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=DWaJoZNK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id dd11si5752999ejb.177.2019.11.28.06.58.49; Thu, 28 Nov 2019 06:59:13 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=DWaJoZNK; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726987AbfK1O51 (ORCPT + 99 others); Thu, 28 Nov 2019 09:57:27 -0500 Received: from mail-lj1-f194.google.com ([209.85.208.194]:37878 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727285AbfK1O5T (ORCPT ); Thu, 28 Nov 2019 09:57:19 -0500 Received: by mail-lj1-f194.google.com with SMTP id u17so1462988lja.4 for ; Thu, 28 Nov 2019 06:57:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=FmgfMIRsfesacuqaAWdy4m11iy4kXtcqJGU2jE1ib94=; b=DWaJoZNKmVKJfjUISyttmUEuNUv/FC4di6OurSxwDjNRPf9fCoQE/A/qz2Dy66aw71 PMyfrMM8lWNdbHve3iKOns1KyW7JmJCa85Djs2qtRkWpz9X+k2Ozb14LpmYyBYaKsLE9 HPUmmm8ft3lQXqQmtEWC2OKlYzqlvX2OAcQXM= 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=FmgfMIRsfesacuqaAWdy4m11iy4kXtcqJGU2jE1ib94=; b=kU+IEf7lO9pwU6aDT5KPVL0VCtyWVgWwcZhP4m4dT3K0Ek0bSZCCeBJvwfLi3TOvux 42/TsVrXbCejPtdRScOXdGd7GCziLwKfF4yzL9F4YUg7OeYTKTF9GmnQ1/VH453+c6Oi 8A9PeO0POoe8A+TZ6Le7F6SaYxVpGR97LSvNytrETuvtlb6ejJ1RQ/ER5c/XP52yETN+ i03KtBS2lCF+Igx0tjkJxrxSp8kOfm4XPAnRBojJ/7xt47vgMr2JV97NNpdkzxiDAgUd I+V4on9gs35Eq8WMhMAuqxs33HokCDmixysQ4FTEZJXKpquCN/WEi06TzZyCwh2cuQlP 81rA== X-Gm-Message-State: APjAAAW2QmzoQ+ohzdqPdEEAYzfCkGViSSsSLQQlts8YLnOcP4h2pjkG 9SbyLZSzHnod33Rpk9po9HnJWQ== X-Received: by 2002:a2e:91d5:: with SMTP id u21mr35420576ljg.32.1574953036398; Thu, 28 Nov 2019 06:57:16 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id u2sm2456803lfl.18.2019.11.28.06.57.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Nov 2019 06:57:15 -0800 (PST) From: Rasmus Villemoes To: Qiang Zhao , Li Yang , Christophe Leroy Cc: linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Scott Wood , Timur Tabi , Rasmus Villemoes Subject: [PATCH v6 09/49] soc: fsl: qe: drop assign-only high_active in qe_ic_init Date: Thu, 28 Nov 2019 15:55:14 +0100 Message-Id: <20191128145554.1297-10-linux@rasmusvillemoes.dk> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191128145554.1297-1-linux@rasmusvillemoes.dk> References: <20191128145554.1297-1-linux@rasmusvillemoes.dk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org high_active is only assigned to but never used. Remove it. Reviewed-by: Timur Tabi Signed-off-by: Rasmus Villemoes --- drivers/soc/fsl/qe/qe_ic.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/soc/fsl/qe/qe_ic.c b/drivers/soc/fsl/qe/qe_ic.c index 8c874372416b..4b03060d8079 100644 --- a/drivers/soc/fsl/qe/qe_ic.c +++ b/drivers/soc/fsl/qe/qe_ic.c @@ -320,7 +320,7 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags, { struct qe_ic *qe_ic; struct resource res; - u32 temp = 0, ret, high_active = 0; + u32 temp = 0, ret; ret = of_address_to_resource(node, 0, &res); if (ret) @@ -366,10 +366,8 @@ void __init qe_ic_init(struct device_node *node, unsigned int flags, temp |= CICR_GRTB; /* choose destination signal for highest priority interrupt */ - if (flags & QE_IC_HIGH_SIGNAL) { + if (flags & QE_IC_HIGH_SIGNAL) temp |= (SIGNAL_HIGH << CICR_HPIT_SHIFT); - high_active = 1; - } qe_ic_write(qe_ic->regs, QEIC_CICR, temp); -- 2.23.0