Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp2410789imm; Thu, 9 Aug 2018 12:25:11 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyq3fV5+kMzskvxkL+a7iBP2KSN8DEpygTvxE13Hhd6Li+UuNpcktfzqcMdfP8+XBX1sfsd X-Received: by 2002:a17:902:7b96:: with SMTP id w22-v6mr3205967pll.24.1533842711501; Thu, 09 Aug 2018 12:25:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533842711; cv=none; d=google.com; s=arc-20160816; b=bquOQ/+MnKEApuirhxHf9hziWR3lDFANI3+kQuzoBzMH2foItp9sWKIv+CR/mNwK2j TIDRg86Z0LMM8EdLZNJF8KqdMOPZIO2xL20lnVcB/hQSA9ADaAxIIQupFXxZb4IKpvlN jMdJKz0RyjlaIrdpJ7ypHwBSMZpI3WiYtUHlOHgrtJ+d5egRiVh9nzDCUNddqB6PTeu4 43el7ynWUMeZuSx3yEGD+ctmSsJuYBrSR4Fum+Y5tGvJYUKj2N4FGSXe3a98VYb192Y3 sCLEK1cYIFyu+lmU7njHiMDUbFMdLWuh8caJKSnFiyVQzk29tSZU1typP+X2XIwK06et h2vA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=4PGalYIZTSpBlC0C1p8NiZ+NibRZgV6nZ1qUEcPK9R0=; b=qjnu9+wBoWYv3o3AwvHRt2HndRVjnjLjzmk/CcaOAVe0UQSS9NVQ4aGFMu287lYlXP G0ndicMUZkY3AJk7t4X6I7ZPv2Ry7V2SH0hj6IsF1nXJEJshAF2TG/yLofWD0MTp4CwI cqM6LkGrG3wfEWA7vG61lWwJIICcgux5J4mWzTf9zBxLly+xe3WKBNKOZ+QvIMsM//nk v6dT/4jDJWXp6IC/TmFGsDaevhd94nD7vpOJYoP1th5jp3N7cbk/xM+wT85l4FEfj/FD p1gwY1hLmNYzYmpoYrXSsgYjgT41CEqI86xWt81nTWqzt7sPH3l6we0ss0WMqKxAyXs9 rPSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b=LonZIsqw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j20-v6si7883303pgb.92.2018.08.09.12.24.57; Thu, 09 Aug 2018 12:25:11 -0700 (PDT) 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=@chromium.org header.s=google header.b=LonZIsqw; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727160AbeHIVuL (ORCPT + 99 others); Thu, 9 Aug 2018 17:50:11 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:32977 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbeHIVuK (ORCPT ); Thu, 9 Aug 2018 17:50:10 -0400 Received: by mail-pf1-f193.google.com with SMTP id d4-v6so3318482pfn.0 for ; Thu, 09 Aug 2018 12:23:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=4PGalYIZTSpBlC0C1p8NiZ+NibRZgV6nZ1qUEcPK9R0=; b=LonZIsqwDdP30iCtLMft80M7Q+ju+8fGETK4FU2CFr5Xta79ANS4zWGwJ6LHY3nSNV RrWeMjY00kMMJi/P1HmVz17v/dFQHmuOkThSPeG+Y9RnFb8fSTl2h3xfrWUj2ZEoJnlD HKwCurg1z4kQgCWEM1SNvact0KN3+Z1i5hoZI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=4PGalYIZTSpBlC0C1p8NiZ+NibRZgV6nZ1qUEcPK9R0=; b=aeLODRq84CkQN4fXWgc+9mT5SmpL/i/YebyYMRKh/oivzrtEcDQVAUEuvOYkHv2lqI yptgD0A2x4u2beTKyoHP16gAPP5E1intoZK1UYbdlPwcROd+OurR/gMDj/aocek0qGyU VHN4BMuhgTkDMGIQK7mZZkVLR77zvz5npF3YKiUSMRcdVATADM+FYRldSW17SuhHJNnK IC989JCRNTxol/U6xCwdwjwqtK+nbap1XDZnVrsQ4Slrv7NNM5yYb74V1fiuoRQYbykt YQe0T02RUpPnhDaBWPmfW+jCYrOy6J6XmIuhoNJBHjrxcm83/E2kb16mIt79E7gl33wo nnjg== X-Gm-Message-State: AOUpUlH5JAUMRlTZoRMx12//BzX1Z5iIfq5lsrXZ55Oqlmr5qGNUhDmW 332xzLCvvLNny+YhDx4YGXNSQg== X-Received: by 2002:a63:2c8e:: with SMTP id s136-v6mr3281656pgs.390.1533842636482; Thu, 09 Aug 2018 12:23:56 -0700 (PDT) Received: from localhost ([2620:15c:202:1:b6af:f85:ed6c:ac6a]) by smtp.gmail.com with ESMTPSA id d19-v6sm25622340pfe.42.2018.08.09.12.23.55 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Aug 2018 12:23:55 -0700 (PDT) Date: Thu, 9 Aug 2018 12:23:55 -0700 From: Matthias Kaehlcke To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, bjorn.andersson@linaro.org, edubezval@gmail.com, smohanad@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, Zhang Rui , linux-pm@vger.kernel.org Subject: Re: [PATCH v1 04/10] thermal: tsens: Get rid of dead code Message-ID: <20180809192355.GL160295@google.com> References: <0f945a83190de17df94a1bfcab48e6a86805cc9b.1533815718.git.amit.kucheria@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <0f945a83190de17df94a1bfcab48e6a86805cc9b.1533815718.git.amit.kucheria@linaro.org> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 09, 2018 at 06:02:36PM +0530, Amit Kucheria wrote: > hw_id is dynamically allocated but not used anywhere. Get rid of dead > code. > > Signed-off-by: Amit Kucheria > --- > drivers/thermal/qcom/tsens.c | 5 ----- > 1 file changed, 5 deletions(-) > > diff --git a/drivers/thermal/qcom/tsens.c b/drivers/thermal/qcom/tsens.c > index 90bb431cf740..9a8e8f7b4ae1 100644 > --- a/drivers/thermal/qcom/tsens.c > +++ b/drivers/thermal/qcom/tsens.c > @@ -80,11 +80,6 @@ static int tsens_register(struct tsens_device *tmdev) > { > int i; > struct thermal_zone_device *tzd; > - u32 *hw_id, n = tmdev->num_sensors; > - > - hw_id = devm_kcalloc(tmdev->dev, n, sizeof(u32), GFP_KERNEL); > - if (!hw_id) > - return -ENOMEM; > > for (i = 0; i < tmdev->num_sensors; i++) { > tmdev->sensor[i].tmdev = tmdev; Reviewed-by: Matthias Kaehlcke