From patchwork Wed Sep 12 09:52:48 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Kucheria X-Patchwork-Id: 146530 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp4618239ljw; Wed, 12 Sep 2018 02:53:42 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZjh8kdjBJ+t5fIfpMmRfk/qlb68bJUjQ9YhR0HUhKSfGA/jF1JYNR+NUfrpPvFWV4Hdzva X-Received: by 2002:a62:b20c:: with SMTP id x12-v6mr1273517pfe.201.1536746022150; Wed, 12 Sep 2018 02:53:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536746022; cv=none; d=google.com; s=arc-20160816; b=OMrTgbJYVHTQjt7BvnBLzg5H04JpXwSqzfR3ZYOI1x4V6EBrwfcLNwLWTelvUYseB2 ZLuEpDOm1XOy0zYnAGtS+IG2b7+7Dpe3XXzUZIRisu2rxA4hCJV2lxVjzZD3DeWXZiSA ccI1FELxKwx6mlGMs44ZfGMGmZRIqBTgRqwnAou49u68mq4OX2BUMezaZpMIfb8HZUz0 CsVu46F5pN566TQehMBVL3QQB+TKov4RHro2hQPpU0Dijsef/fzUUO1xJ3uzvwNHYBFx 2yQAq9rHrFzeRtsyMaY0cD9IG+3wX5lXS5OdNSX1pnKBjhcqu6Bjn6Kn0QWQXTvzyFks 3zPw== 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; bh=RXDtbhIMyFAbtAg9tx8eCbbtVuDm61EOqgYh33KEgl8=; b=VWyKL57Dtcwwy6SQHzGiwBZ0Vj6j4YyhewFaAnym3Rda+Nwdqs2Cak6TwQ8ZBJeYq/ V4MdKqwUmuVgbus6Apvp/mtj7GeXNbEt/PjSNbxj18nkMjuMKa4bFH8J5zjjkuUt0ySk tMawlojWE/MmekcdIO9SGNdGhP4H8y+SyS60BgIYgv96Y00u7L3vVCpuymVKt0rF7HWS cJrxw/OGROBrWknzI0HTZ7TaKTIP9qbADS+CHorZ/qZ8CJ4/8trtRUheVNU2aTYIwXka YyoSt2yorFLB+Dtxu2Zqv8j2hJiBkA8ZDuMgojKnc2meYsx75qdk0vLnTrtQYw3BClYi 17Ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OEbotGsS; 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 s10-v6si631341pgh.6.2018.09.12.02.53.41; Wed, 12 Sep 2018 02:53:42 -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=OEbotGsS; 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 S1726839AbeILO51 (ORCPT + 13 others); Wed, 12 Sep 2018 10:57:27 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:33398 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726860AbeILO50 (ORCPT ); Wed, 12 Sep 2018 10:57:26 -0400 Received: by mail-ed1-f67.google.com with SMTP id d8-v6so1283138edv.0 for ; Wed, 12 Sep 2018 02:53:39 -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=RXDtbhIMyFAbtAg9tx8eCbbtVuDm61EOqgYh33KEgl8=; b=OEbotGsSjoxEa2H9/50/GxFSgmVnTAOrcJRYC3xo0w08omETCoeu6rMeaVS14mbkKL pXKHYSn2IZReT9u3hUPQ401KMAu+qZDFMUzchNNrOxEnHRXF3VW7hssbdF7k6YhkhcSp 3TmTi2ykfyR4GwPfx4Ay+skd12teQHBTW+nYE= 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=RXDtbhIMyFAbtAg9tx8eCbbtVuDm61EOqgYh33KEgl8=; b=HspLqL19lqjq3z7qoUUSGPzm7PeWan+K1vbA6XPo8uQzRnV6rOsKbhIcqkCUcfmOf6 hLTXlVmC09lkWrhTOHGiX9vtdyRqcYAqiQlQcMh/dgHDRHakscc/HfJTB5FtsIvOfqKH wnDnFxuARVKqACaR6LHVKY2OvZDVM2APEBqIjTVY+xMrdP9PJ0/Q4uC8W3vHDcRt+GKt 4QEbZobMG/71QaZCvTAQip0Wixk5W/rFzm8a76zM6UQvGDFzPALW0y57ERTyEN7qnum9 0REbaasINB2glD4gmS0+3AqlnFDdV2Nr+VJLU/rK59/W2nZFRPa2PEqgC3T7UybHsWju egSg== X-Gm-Message-State: APzg51BJFZQqIEd3Hq/Ucrh4unVYgihId12aC15pyfMwvpCwb0IZnXMT SvKkI762d42PChXSF4v8hjbtlA== X-Received: by 2002:a50:d798:: with SMTP id w24-v6mr1883556edi.19.1536746019244; Wed, 12 Sep 2018 02:53:39 -0700 (PDT) Received: from localhost ([49.248.190.214]) by smtp.gmail.com with ESMTPSA id e30-v6sm390310ede.91.2018.09.12.02.53.37 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 12 Sep 2018 02:53:38 -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 v3 03/16] thermal: tsens: Get rid of dead code Date: Wed, 12 Sep 2018 15:22:48 +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 Reviewed-by: Bjorn Andersson --- 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;