Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp1986664imm; Thu, 9 Aug 2018 05:34:41 -0700 (PDT) X-Google-Smtp-Source: AA+uWPx4ibW3wXtND54+xdNY+ggx/iUCSZVwKJpL4xLBi8hFnrqUq1K59clua/vjDNgFghh/ioDw X-Received: by 2002:a62:2f84:: with SMTP id v126-v6mr2214992pfv.115.1533818081652; Thu, 09 Aug 2018 05:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533818081; cv=none; d=google.com; s=arc-20160816; b=IbvfYqV2EoTglfKheD36FrK+n29DEIO/u9p09WuJXkdsgy3hv67QRBIBQk1CMaIfo2 gH+sv4EYiN+ghu+Hzesxe0AgY3HyqzsY77atRNgAn/n1PwXOFYgUJ8get8bD/3ZEnUUf RGfpXdsuj4YP6EGtIcHCJEvwMwWgINLNtGLcwPInOysS0UpuS6LfYnUWaOvhDZDcmwRm jZSORALt/xH5xNoq/VLnietEfKOG3cA5EsXx0NkSH383CqKEbqsWYTTPnBHJgCLNqTJz F19yTMXvTkgeAEFafR/E51Z745ej0mUNqahs4/lSn6SgOu9xfKuXaDKzXE9/0deH0J1Z fRfw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=LajXdiR+UMjFusLCr0IrH9cyGv2mk15+PoiKf/4cna4=; b=MEKE+jj87lU0kH0kYaOWV/0SHmJo0gab7npX3EHBmFlyNi5vx5jA0tQpZoApdGNc2f UB9zwRuMzSu4zdLWUBQiHt6/FNkCZ7f9ooT69FtaxTo7XcoxgilIBfd74XtEF72+vapl twYckLZQ3kXOHq02oE7aQwsrvw2lx0UawwxIJT3qQOwIKq9XX1VpnNUcAQXcNsX+zbjP P22vV095N3gP4X3uyjK/PtBXkuJ4W4pwhrnO2ve/k1SITpmwFg6KEaLXiUO96KxoGz+N N56v6bk4wtIjfqSVvgPRCWy8EhR6Fmk64tFbbAnXR6RkdYHYtAGQI4DK94z98HKAAFD7 2umQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=dp3z1FdW; 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 ce1-v6si6404037plb.391.2018.08.09.05.34.27; Thu, 09 Aug 2018 05:34:41 -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=dp3z1FdW; 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 S1732157AbeHIO5x (ORCPT + 99 others); Thu, 9 Aug 2018 10:57:53 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:40818 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732137AbeHIO5w (ORCPT ); Thu, 9 Aug 2018 10:57:52 -0400 Received: by mail-pg1-f196.google.com with SMTP id x5-v6so2689494pgp.7 for ; Thu, 09 Aug 2018 05:33:11 -0700 (PDT) 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 :in-reply-to:references; bh=LajXdiR+UMjFusLCr0IrH9cyGv2mk15+PoiKf/4cna4=; b=dp3z1FdWV+2UM/p9OwFhQgpvGV9I72sQcZflwuQf1PLFveTjtGNRmQRLkaqTvrlLZG Kle5slvSSIksbdlO2jCJIJLCf4OoH1XLPjsxpBKiEldKEGwFKXEMyc6k80Hlm2OGIiVv UK43GFrevkBifNAgnt2y+h3hEQ09q4Lde6deg= 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:in-reply-to:references; bh=LajXdiR+UMjFusLCr0IrH9cyGv2mk15+PoiKf/4cna4=; b=q2JxVD02ozdjs1JB+XHSd8lEmOIqsimZbnb07kuD8pwLhvxcR7r82T7I28yesB5os7 tTe4oQ9/CB6uo8jvKfQIcnlfQCJqpd297wScPCXNJUNocuWjK75RnjZmB2HRniuLKSBP +m1sQAtKGKbrObscgpRXRZV/M7wdczOL2oKE0t5VfKxa9gSMuhnF1XuzjD+vzj4TAUSR V584kDmep5VNRXTtXMSOKvQBdrISrPs+lu3Ll2716gjUTzPFnej+LhXu3JJjjtpMvu4q Bec6JsrQSjVszcZTBlCzyyZ8gz1nxle4psOGF+2brdVz1LU9rhvmUdGRcD0KwbvMIBEw /IpQ== X-Gm-Message-State: AOUpUlGTTCWvItNTtn9SSa41FJOu21z+T1HJp8q3nh5UagH4iiCF77eQ ioMYJru49TPHX1xkcxH9nooCdzrvX8s= X-Received: by 2002:a63:5660:: with SMTP id g32-v6mr2029301pgm.227.1533817990565; Thu, 09 Aug 2018 05:33:10 -0700 (PDT) Received: from localhost ([45.113.251.134]) by smtp.gmail.com with ESMTPSA id i28-v6sm11592220pfk.108.2018.08.09.05.33.09 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 09 Aug 2018 05:33:09 -0700 (PDT) From: Amit Kucheria To: linux-kernel@vger.kernel.org Cc: 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, mka@chromium.org, Zhang Rui , linux-pm@vger.kernel.org Subject: [PATCH v1 04/10] thermal: tsens: Get rid of dead code Date: Thu, 9 Aug 2018 18:02:36 +0530 Message-Id: <0f945a83190de17df94a1bfcab48e6a86805cc9b.1533815718.git.amit.kucheria@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; -- 2.17.1