From patchwork Thu Aug 9 12:32:36 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 143832 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2038500ljj; Thu, 9 Aug 2018 05:33:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPyIghhijZ0dTSRa/ZG33qRyveuNxYg4b9+sUYVbyoQAWdktypHNzZUNSnOFz+FMhby0NFC0 X-Received: by 2002:a17:902:158b:: with SMTP id m11-v6mr1976467pla.102.1533817993066; Thu, 09 Aug 2018 05:33:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533817993; cv=none; d=google.com; s=arc-20160816; b=FLnHBX3MumfBmRhnnYzD2aO/N87ji8QYiLzKY1sL/bWcxOy92QPh9rjr82QjThc+Yp jkZTGBxtPOl2vEy7tWWptT6IoFmMpq5TlZJM64J7YzmupYE5O9kTTeHcwkWH2q1UYe9k dQtfmwoj/6GCJWFARwb/kXFbM51f2VAp3EXsxM/SDuQ7uB/+xI6UZzM+BzA8DxZW5AlW 0OVdRyzgMLAZzJE/B9iPozkb+kbeoR47fpusCEsb0QKI8wZKH22KzcsyQpuJvHYdPdFi Eo696/b2xpmBkWksg6tca3DW9jPHMdSKcRe3MLV1GCnjkumImMuMTZLgb2v2Et07l4io gUEw== 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=mcM1iui1EbaI9AvGZKqAjPrVvhrLbaYGcr2+M9/q34j3MfUSQXgiP6LjcYlCHFDjeY kNtBJuu8BBrXn3iloY66rM/UpRFCg3f1Kdq0pSDjCPCl+5iHxbDfLTvbn2hBt0fs3xBy /24W9/JcM8Ut48dtHVmDLBQKfuFDZYlH1iQwhc0H3oqWzzkNt8WLc7XUcsI/sCsz9/M8 ApXw1KNN6uVEMRXlIcUAaHDVbLn8Fw4WP22mRh5r8CggWJ38cRGJDmLdrog9EfRlpo+X gsJR7P8w2Bnx93+jxZJ8ZKGIjHHXie5OjnGRYArqJeEIkdqWcHvN93/VDO/csaQda9qN 1lRw== 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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 w15-v6si5541686ply.501.2018.08.09.05.33.12; Thu, 09 Aug 2018 05:33:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-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 S1732139AbeHIO5w (ORCPT + 10 others); Thu, 9 Aug 2018 10:57:52 -0400 Received: from mail-pg1-f195.google.com ([209.85.215.195]:38419 "EHLO mail-pg1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732136AbeHIO5w (ORCPT ); Thu, 9 Aug 2018 10:57:52 -0400 Received: by mail-pg1-f195.google.com with SMTP id k3-v6so2695761pgq.5 for ; Thu, 09 Aug 2018 05:33:10 -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=ttaG0G6gPdtCgViC1Bqp/pV202YbHZh32seux0x20GhyPSrxDKoiEZgzh/HyQJm9ne sTI8VePeBxvL/pNO+M59kAi0YFJMHWmqDxZwXlCOSCINaVZvYXIylEndGCb7+I+ngUzd Dmsfqe0KIY24q7gZ+rPnek1JXKkUs3HZ0kL22Np9udb8kI2LWOOhAvfKppuXgdk16TbG RaUDfjMNyo8cLNxayB+lVUTfeSSzTCv2No42gC3va3I2UdXCe25PLNcaGV96a7KzxQoO tDV21Hw8wv5X7n8GkRccSbtoaVECHWxjBqgR1nedHn1czdoNkRRwgF0N8kBHuYygLiKn GlQQ== X-Gm-Message-State: AOUpUlFGF6Epcc9IdUTMLES4Yo3IvCLokEOPUOnsbYW3rt4dq+dQo/Br ZBsy9q+g8QjVW4SVPWX/eM3Rng== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@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(-) -- 2.17.1 Reviewed-by: Matthias Kaehlcke 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;