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: 10597269 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BB7BC920 for ; Wed, 12 Sep 2018 09:53:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC2A32982F for ; Wed, 12 Sep 2018 09:53:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A062229837; Wed, 12 Sep 2018 09:53:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5E5322982F for ; Wed, 12 Sep 2018 09:53:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727560AbeILO51 (ORCPT ); Wed, 12 Sep 2018 10:57:27 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:38287 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbeILO50 (ORCPT ); Wed, 12 Sep 2018 10:57:26 -0400 Received: by mail-ed1-f66.google.com with SMTP id h33-v6so1259457edb.5 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=psJdXtGQp5RJNvX51zPmwoeZyEXMl4pnVq17zu4qm1v+Eedxm+iLurehbRmrsb0CeX eYXEwPE3FVxHS1r/uF2tPhJqjUbDGn6zV7cZEIhd7EoQl5HKmkKU5LGxP92mWrEnFHfd wpmUC0cewq0kF+2AkwjizK2ucX+1pryDjEFiQUFEqFf/mAXccrm/mQbUE6iQLECn9BrA QM7Vm+H7wTa/tAp1PNNzTJWvMsmI90j4WFBEWviKlJCnXebbCrzaFVCvH8ZuZSBAVf5G VWIIQQiKWrfQfLWeBMquy2WfE9eP7VlLlxyQfPk8TF7jf5HWXGbxSPkJRBh2ARLL+i7+ ureA== X-Gm-Message-State: APzg51AKbssNq9e5JhfcrHKQsVIphAm3IrFgU8FYafcmivVS5Q46xzpl vMx/h9n1HIbabcYvaK9MyDubVw== X-Google-Smtp-Source: ANB0VdbX+ZJr3SFGG70Zfh2Ct/HD1a7yxuSJ0YJb9YkUrm7kd0tpgl3e/O2DeaCbvd6ILh7Civo3/w== 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-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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;