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: 10561353 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 4598713AC for ; Thu, 9 Aug 2018 12:33:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 350802624C for ; Thu, 9 Aug 2018 12:33:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 297C327968; Thu, 9 Aug 2018 12:33:13 +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=ham 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 D04782624C for ; Thu, 9 Aug 2018 12:33:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732139AbeHIO5w (ORCPT ); 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-Google-Smtp-Source: AA+uWPzPyMgdO2kkhyzzGXNytsX3lfBz0ko88moZSlQql0zPIDYOhZx0SwmKuPf8U1iJ7VcpSHDntQ== 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 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 --- 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;