Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp5218305imm; Wed, 12 Sep 2018 02:54:26 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZawtrC7p7DEYaS/zNYXJAFo/qHYY6gUCxIU61cB6Os3K3CTR2cEkk4jpVuQOo4YBb7ZXvN X-Received: by 2002:a62:6a01:: with SMTP id f1-v6mr1319093pfc.156.1536746066032; Wed, 12 Sep 2018 02:54:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536746066; cv=none; d=google.com; s=arc-20160816; b=Ok4N2yjXr1aKI9fHMVVLfwG7F0LbplUNhrIHntzUWcNbs848TAz3DMWVWf7FJR4w+4 6wsRGLVb0gQFdfCz8apBt7ERy0EOS/wxXwplUEZ7BELUtNjgRL7ikxogIe3QDrRbrONE oVpxixsgVD6xlHw7dkmn3hPPjaKkBDUMtAM7bSR+8K+2IhtxEU1czUPpOWTesE1b7/3x MkwYVUpj8vhY/dc0CpO3M5XryeNoKgyn7LBe4gsZ/qNla3Zwijc9T0a2mwLP8ZT8AoRK UMrEIl1+ZLKM4KBtuwLI0drZxaE34yXv9w1A7L5qYj66C0sg6fB2uRqIVng/0Y/TFEx9 PyqQ== 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=d/yiSC0MNATQFwGCtqhx0Q2MYJS0UVQ6cs6AojJawLKeOocclNJMWKiSzcXsYzy33L 4QruNp49zm8F6Dw+etI9cQOYrOVXINQf4RVXR0KzLqndhembJz1pb5qk6cmc+EujkFMh H+RGtlBuM/oeEDk/ooEJ+xeb1T8zLPaqMjsbYagudRipBiGTYCBZLyoP7j6y6X3C43KU dQnJCCkDIAdVUjXFEVrOGW9TTd2QIE8SGu6bbs+/h5Zcr65YQjt8EGh1Sh+auyxDeb8o KZdwD89EYqgGxZ4w+bkHcL3tpxgqAnAiJ/YTz9uHkOo6bOIH0i/LPwQG9WEnidGRF2IH vFZw== 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-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 o6-v6si500008plk.31.2018.09.12.02.54.10; Wed, 12 Sep 2018 02:54:26 -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=OEbotGsS; 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 S1727626AbeILO51 (ORCPT + 99 others); Wed, 12 Sep 2018 10:57:27 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:45752 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726993AbeILO51 (ORCPT ); Wed, 12 Sep 2018 10:57:27 -0400 Received: by mail-ed1-f67.google.com with SMTP id p52-v6so1230816eda.12 for ; Wed, 12 Sep 2018 02:53:40 -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=touV1Ry728jiGCv/sz+hbrVOXyTuP2GEZ9Nx5wxpqMkig5Ye8hmVrXqIeF5w7rF4Zy rpPJ+qXf+isU3DAu12ZpBJrhl65U57uaxooNoI/Xv6M0qeZ9ripRbntLSDa4x2B39goi d9nUarxVcNvScVXrUtXep4a+1oBF7ujT687i0b2u+r79EypVFG8ktbLBzwtUPUQTDF7c U46wO1dtW78wuWkm6/W9QSmBGgjlQaAumzfTHfjcsiSMTRjXzqxlM1u99vYDroxws0a5 RUeWmjD9fDcNjCu1ZHVVxtu9FUct+3zfslIUF7uAucySsIc28OPQ6qYvwXrttuV4PkvC Dylw== X-Gm-Message-State: APzg51CxStoa/Ghdo9a4GRdForCEkHT6jgUCgbRxVhWT7AE2kxFGZEVr oSaRRp3LptO6er4RDzA6eEJrZxQRVIw= 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-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 Reviewed-by: Matthias Kaehlcke Reviewed-by: Bjorn Andersson --- 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