Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp1930186imm; Mon, 3 Sep 2018 13:20:07 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZwfAD3H6IRccYvA81ooO1nUAMpqf7a2Nt/TaX2LaTUij8mYR9kaBtZWjaNPmLIsJOwrj3R X-Received: by 2002:a17:902:261:: with SMTP id 88-v6mr29985871plc.331.1536006007144; Mon, 03 Sep 2018 13:20:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536006007; cv=none; d=google.com; s=arc-20160816; b=UTmWPj61XOUN+C1QkdW5A4O8o74a+sOMRFfkYe+EUFHN9edVafIAxz7V/hfda3WG+N 97p8VgQ5RHpDvI3nPnoUKopjvJ0+dOvmVvTFhC+f0J/E69fV5jLldc5G8+K4EWY2lpyO 2A8hVQvdUhuxui+938NefNeufCUnSH58idqHvHpFWn0BZ08YRc4drIUDjfsvFl6Vuf0m DaIeP0Cq0VyxvCvCsbrXKuIrNuJjdRZ5WLsP9eSX/raLznlMVbCDtWtdjot52FMfw0xk MnVa0/HiUxXfO9k0AYg++nuncKwhUIqRf2zAj/5kFskg44J+F8YURyVRc841bv2SAEfh FfFg== 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=B7BT97TJF5MxYBHaW0n5UuNfHBDvgjAHzZYBwswED/U=; b=JWrXu40LwREAUPTTPYsz0yaEd4uxH7BEu1dcKXRXZaJRTRWLcUPwM6cnCbIScaLGDl fNkaTiGthh3UOgg9YzXLoouWVwOLmEZ2ONWCYK/GT7liITeuHxk3N0IEgH4B/gf7zBm9 saA5T+kOj/Do6rAaAclTFbgy6YCd9U9Or2roOEItrLPhZLzYmBLNy5onQ5rSZfXhJLNi x3o7yUqWqJDfojGbwRs7zvld1jc9e6OTkfOWVXIMT4FcGTBdVK3875cCjQm0K10Jaowg ML5L0+oqlV3Dbo1em+pX2145Js8WmxcnKFLILEjGNE/qpr3v1q/RYRTpFM0c1Gzy1h3/ UJkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GpLvUML4; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e10-v6si21207619pln.161.2018.09.03.13.19.52; Mon, 03 Sep 2018 13:20:07 -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=@linaro.org header.s=google header.b=GpLvUML4; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727612AbeIDAke (ORCPT + 99 others); Mon, 3 Sep 2018 20:40:34 -0400 Received: from mail-pf1-f193.google.com ([209.85.210.193]:35184 "EHLO mail-pf1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727413AbeIDAkd (ORCPT ); Mon, 3 Sep 2018 20:40:33 -0400 Received: by mail-pf1-f193.google.com with SMTP id p12-v6so590831pfh.2 for ; Mon, 03 Sep 2018 13:18:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=B7BT97TJF5MxYBHaW0n5UuNfHBDvgjAHzZYBwswED/U=; b=GpLvUML4DST2BAswoATFSPthvu6JZDhcy5hiWKhj+SqgZQBpu65IhnIyJxSFU/DkQr SJgcAwAyblf2G/kB5MbO1Ut9nOVnxZnRvngPRqegN9DwA4r9pJR6ttUtCK5rili2lM5n /jjfeB9WPD8v4Pz7aK0BzPoTaLR0WgmAObom8= 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=B7BT97TJF5MxYBHaW0n5UuNfHBDvgjAHzZYBwswED/U=; b=KldlQLItj5QOMWoSfoBwNAUx0kopQVO1CwIGEWrEJeIaNcgRyz1UhtM2mwOtxiKIV5 W9ydwzD5/kOXoVT67svK6ogeD7+s8U42owjEWhdLnfhXZkoSZ0iBv+RjfosAEqb3Ehpv gJjrkHiOJ2GqLFPRJ4FVQryY9Fi0hoDuh4d7X+DCxoCF2lQpxQJwH9G+9B46VCU1gP+3 gfOA2t8gKuMbebubahbtqiaUJyhziAWlWf8zN/pIha69yGaZaGfYbZVUiB0bj0VO/2S4 0LjkJlS02NbhJJ5Rr0fDuxjMkIAMA6zPkRV7aR0sa6ifOKTvTuuqQLKyNgI8MWGoX1Xw JF+g== X-Gm-Message-State: APzg51CYAFF8BfcAV6ahH5o4Zxrcb7/Pxcv+S4HzYXQbkc3cVk7a7Q3r vqHK6YNUWgSGBY/DMW35g7du0w== X-Received: by 2002:a63:ee56:: with SMTP id n22-v6mr27999680pgk.402.1536005926353; Mon, 03 Sep 2018 13:18:46 -0700 (PDT) Received: from tuxbook-pro (104-188-17-28.lightspeed.sndgca.sbcglobal.net. [104.188.17.28]) by smtp.gmail.com with ESMTPSA id r25-v6sm24698455pgm.59.2018.09.03.13.18.45 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 03 Sep 2018 13:18:45 -0700 (PDT) Date: Mon, 3 Sep 2018 13:22:39 -0700 From: Bjorn Andersson To: Amit Kucheria Cc: linux-kernel@vger.kernel.org, rnayak@codeaurora.org, linux-arm-msm@vger.kernel.org, edubezval@gmail.com, smohanad@codeaurora.org, andy.gross@linaro.org, dianders@chromium.org, mka@chromium.org, Zhang Rui , Daniel Lezcano , linux-pm@vger.kernel.org Subject: Re: [PATCH v2 05/11] thermal: tsens: Get rid of dead code Message-ID: <20180903202239.GP3456@tuxbook-pro> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue 28 Aug 06:38 PDT 2018, Amit Kucheria wrote: > hw_id is dynamically allocated but not used anywhere. Get rid of dead > code. > > Signed-off-by: Amit Kucheria > Reviewed-by: Matthias Kaehlcke Good catch. Reviewed-by: Bjorn Andersson Regards, Bjorn > --- > 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; > -- > 2.17.1 >