Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp41158pxb; Tue, 5 Oct 2021 22:45:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyKNLAQf1iQFCGkHOD8OJxfRMMTnyjOjB2ZMzy3HIDpfMILU+ebRp4i+CIZ0WwZx1IjTD2p X-Received: by 2002:a17:90a:414c:: with SMTP id m12mr8703441pjg.187.1633499117915; Tue, 05 Oct 2021 22:45:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633499117; cv=none; d=google.com; s=arc-20160816; b=XzaYKyVpsjkgi3zhwxVBigS7KthmkZaV6/f9R/bWyrZGwVPQ9YGzHdqfUJRMEsQ2d5 7PRMWBj/hbXf6pVsKvqteUt89ppC0LXyra1MR6aXKiwqhGmlTfS7RpsvBUDIuOKPE+dm sqowL7SbFnFymtiwrvAXA8FppIaPS4NeSyWA1cecnY0zUKoNPhGQrlCHNmnopfdmo1oL dXH07qeJwtRlp1rc5L9ec3dnDHrNfzVR0vq+1z6e2KUYui5p/acCQhC7drn5krCoBMuk X+2Erwh9XF4vf1B/4BSLoz/EvE/s/v2xCb8AxWPocX5A1q2Qppkdi0DUHlObSuIlA0Ll xU7g== 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 :message-id:date:subject:cc:to:from; bh=S8Blb59Syifb1Y0zT5K+odWH7OyntohitFeyQTKbSvY=; b=XQuIuo6IwwEeMSQfRc2o2bmle7Nl2f28zplYNHUk8zydKw2R4ebPsqtu93z8h4Anra kwRfdtiF23sSXDwOOk+tnRj4qcyQTU0BlXnmaojpxy86yj/2/KrEmjaJLniPYBSgTGbh UU+ceJma/+Qk8/3rDTNWC3uwGhMfiFmryOjgqcoA9d8fRIHgL7E80iAgaTmzYu4a0hFI VdlWc5dY1MhYJfA04FdnIBLZ/BmOj67kNs+JTfJ48yEUDYga+7/t68VziTNkg4DLG1wy xlZ2ZvDx4n4ffHIJylCuu4VU7lWi7eYPp/gT/PDbZtSuj4eBhCGDcarVRhDWJuExga+W zleg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l18si32282204plh.436.2021.10.05.22.44.59; Tue, 05 Oct 2021 22:45:17 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229956AbhJFFpc (ORCPT + 99 others); Wed, 6 Oct 2021 01:45:32 -0400 Received: from muru.com ([72.249.23.125]:41266 "EHLO muru.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229579AbhJFFpb (ORCPT ); Wed, 6 Oct 2021 01:45:31 -0400 Received: from hillo.muru.com (localhost [127.0.0.1]) by muru.com (Postfix) with ESMTP id DE6C780E1; Wed, 6 Oct 2021 05:44:07 +0000 (UTC) From: Tony Lindgren To: linux-omap@vger.kernel.org Cc: Dave Gerlach , Faiz Abbas , Greg Kroah-Hartman , Grygorii Strashko , Keerthy , Kevin Hilman , Nishanth Menon , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel test robot Subject: [PATCH] bus: ti-sysc: Fix variable set but not used warning for reinit_modules Date: Wed, 6 Oct 2021 08:43:35 +0300 Message-Id: <20211006054335.41997-1-tony@atomide.com> X-Mailer: git-send-email 2.33.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix drivers/bus/ti-sysc.c:2494:13: error: variable 'error' set but not used introduced by commit 9d881361206e ("bus: ti-sysc: Add quirk handling for reinit on context lost"). Reported-by: kernel test robot Signed-off-by: Tony Lindgren --- drivers/bus/ti-sysc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -2523,12 +2523,11 @@ static void sysc_reinit_modules(struct sysc_soc_info *soc) struct sysc_module *module; struct list_head *pos; struct sysc *ddata; - int error = 0; list_for_each(pos, &sysc_soc->restored_modules) { module = list_entry(pos, struct sysc_module, node); ddata = module->ddata; - error = sysc_reinit_module(ddata, ddata->enabled); + sysc_reinit_module(ddata, ddata->enabled); } } -- 2.33.0