From patchwork Tue Aug 28 13:38:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 145323 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp1204133ljw; Tue, 28 Aug 2018 06:39:33 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaOZC84AClxAwhRZ7/aUQnli6ZjrJWaS7KLCyGl3TmIwf3B4n5SC16XzTnazvhAps/8U8wE X-Received: by 2002:a17:902:6b4c:: with SMTP id g12-v6mr1662431plt.159.1535463573289; Tue, 28 Aug 2018 06:39:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463573; cv=none; d=google.com; s=arc-20160816; b=I6wmnjUEgH3Uikc+PyJQlVcoJnUZyIU01l4GvBbgHTuJO5ODkZy5Qa+FsAwqBpVXTB jlKrisdq3shKoAaLWTdpsbfvG7mq0QPLi987Bm06lq4FPI8XLGFLKLTlAUG9Vhjibn5R k551p+mehJxb7/7Rmi0rpORGHWESmLEVzbkWaZlY4kvSGrvepvawU48lkgTo2tUQBnua S3KmS4sAfuFCIKpMDfUUZiJ6MyHdLU8X3TVHs0gf4ac6VmjEwXlar/qR6sVggWycs3eI X+jXKNPmMGIbbUjlWutUUmxe+7UEcGNCy/4rFg8k/gCO8XPvxsWR31WnjyFk3x8dzunL dN/g== 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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=vXbAYRMXJEvO+6OSna1ZFRja2SvHGIzoC7gmd+fJaK8Qg35HV97k1Jz1DnObTjWTa2 s3sfT3OnvEmKPYuEnpC6dvBSeW1bN3Yw6gs0XOHrLMQz92KF7Jv2zO7RzvykeqUAFPO9 Ppori08dK+FI+r4V9jNDaQlQdUosDeHzj6qlei5Xqv+aPqgyNonqI2f8kR8oMVzi2+Qd Jd1MPjG5LdpWtA3sfJVtMxPOSy3l333LVrQy2mq7RYF6Dm4xPDXAYDfUoeqUPJmb0mpP PnZVCERvtiNhcx5H0LjLulzTpITrn7k9DThvmsBviDAMmNhySwoRu5LG2xPdWOSO9nKy ixBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hAUfRUOW; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 32-v6si1143684plf.0.2018.08.28.06.39.32; Tue, 28 Aug 2018 06:39:33 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-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=hAUfRUOW; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-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 S1728108AbeH1RbO (ORCPT + 13 others); Tue, 28 Aug 2018 13:31:14 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:45387 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727372AbeH1RbN (ORCPT ); Tue, 28 Aug 2018 13:31:13 -0400 Received: by mail-ed1-f66.google.com with SMTP id p52-v6so1389451eda.12 for ; Tue, 28 Aug 2018 06:39:30 -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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=hAUfRUOWAG5vo0DUb55qiamCf0cyPx+qw4vg/Y0V8lbY9FCoWZXRguDvGH5v9Y/sFE lgm+Z3VO566KEnZlAKhQHNnIJwwDRkuX4w1hhd8KIuBd4lZHs6th8l451rGU1hlzGG1T 8ilgCMIpl3lam2rRA2IRNP4ZLo3h8YpkBxn9s= 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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=aHV/tKN7yA21RYOf6jSqcFvOs3wb8hMtKXccvE24UZW6rJa4rr0JGmtufwOqTnZymp +dT3HfVEpS6L4R2JXDosvwuzXaVt3EUYHhcujEsx+f7cVzP+egLMY7XqTDcR/n1bwQHo Ai5S1C2y+yCzPV0LRWy76uj/WElZ/YvnBZTI1A/9lqBueWkKMBK6hTEN8yjFlfPwEE1i /gGmxkdGgD1qWR71wJU7TgGnjR1HwEBv5OZQXuB8WJrBtOQKoM3hqsp37SJlTWgivuWc aLgy/xSStiR2A5AmkN9GCWmch5fY071KqTgu2+Mp/LPGip3sxJAFcadvoA9vmWZmOIfe 55UA== X-Gm-Message-State: APzg51AcU3jWzcchs9bv/GbH85FEY59pMHLptUY8C0omsf5DBsoYG5yI FC914VPZhwVCYTZ0GaLNrPeT6g== X-Received: by 2002:a50:9e2f:: with SMTP id z44-v6mr2517744ede.242.1535463570195; Tue, 28 Aug 2018 06:39:30 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id j10-v6sm610521ede.5.2018.08.28.06.39.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:29 -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 , Daniel Lezcano , linux-pm@vger.kernel.org Subject: [PATCH v2 05/11] thermal: tsens: Get rid of dead code Date: Tue, 28 Aug 2018 19:08:34 +0530 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org hw_id is dynamically allocated but not used anywhere. Get rid of dead code. Signed-off-by: Amit Kucheria Reviewed-by: Matthias Kaehlcke --- drivers/thermal/qcom/tsens.c | 5 ----- 1 file changed, 5 deletions(-) -- 2.17.1 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;