Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp7113947imm; Tue, 28 Aug 2018 06:41:12 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZDBpZCwNlDru/OGccG/4RR+GonJPa5VZr0DIDfGsWpXl4E7BgHwmzJtT6eyTowdmnxBS/j X-Received: by 2002:a17:902:1e9:: with SMTP id b96-v6mr1629681plb.273.1535463672697; Tue, 28 Aug 2018 06:41:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535463672; cv=none; d=google.com; s=arc-20160816; b=wtifJEpXz8TpQVvP91N/g+uJ4CHDpNZLdVQk+PE9tNuZYCANOPLf0hkS+EJZiqFpZg DYKGQzyQHpQLYB1jUKCqZlgxi6RsrlSMPOoUJrWSW1E2OyBarvvbVRatXNyPK5WMckm2 GqREXb0MiUI5CRWsvUyVViSRCR1g/H4iIDBQ2nzdN4Rf3GdosIDc+64qFKdlvS/zISkT AlPVU3LVhAiigR78IMdp+KCKwVBs0dNrmY5UzAf/uILVsR+U+Jn0p8MORFrvmEG17aQf srQE0bUCJaCVVz1kZiG0+mUzPot992dl1II0UXZd5JRzdOGcB89VclKBuR7VUMxI79aR hOmw== 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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=WoNKp/oQ2LMhOminndvkWbtEvjtoWlcyF+IT3LBs6ymm4H+pRUyl6dZeQ6P9QwMqk/ LtjYzKHrQGOswsmILOey0F2zV7ve5qaHie7RndlwbQ7dCe917QbdlRHhBwiXvWLyNVRR 3lt47K2Dgo9WhES/b6aV0OQfvU9pe4onIjpHQYMz/TSrC8FssonJ2fFihSOb008ltE6H jwK/h4Pqs4KuMhRX4yMScEvDU9VFr8rlYaC0FMGSyvivuAZ2Ekz5ZEjQM/4t52evy+3t xvFXH++PuuRnY3kHj1/KLhGhxB27KRJIz+wqzaDrdy277gWA53gsCTsj6QUfhxdc0TPl QDXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=hAUfRUOW; 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 g12-v6si941958pla.403.2018.08.28.06.40.57; Tue, 28 Aug 2018 06:41:12 -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=hAUfRUOW; 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 S1728132AbeH1RbO (ORCPT + 99 others); Tue, 28 Aug 2018 13:31:14 -0400 Received: from mail-ed1-f65.google.com ([209.85.208.65]:39120 "EHLO mail-ed1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728011AbeH1RbO (ORCPT ); Tue, 28 Aug 2018 13:31:14 -0400 Received: by mail-ed1-f65.google.com with SMTP id h4-v6so1405419edi.6 for ; Tue, 28 Aug 2018 06:39:31 -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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=hAUfRUOWAG5vo0DUb55qiamCf0cyPx+qw4vg/Y0V8lbY9FCoWZXRguDvGH5v9Y/sFE lgm+Z3VO566KEnZlAKhQHNnIJwwDRkuX4w1hhd8KIuBd4lZHs6th8l451rGU1hlzGG1T 8ilgCMIpl3lam2rRA2IRNP4ZLo3h8YpkBxn9s= 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=OtEL3twwCU5dkO9QBj71MwoA7SMZwYjEh3tYcgqkpCQ=; b=YIBNMeabd4Dj30wrv80rqkQTNUlvULiXZZsdzliR/kCboUaxMZSI2ay/IUjNC6zkzs i+ixpj+DRMg4fafzoic7B0wR3BHm4QmDin8EIVmfGl2wecIxWbOu05ox4hbPqsh66uP4 dOWKUFkW8aTxwqHIcb8YekPOcUyFvnEi/Ct6b3thXLimBCuAI7muXuGkeYT+9cTpUY9p 5w77vXZDdpS70/YcNkLRBtqTKjR96uk3i3XYD/KBgaqoMri9iBqMdLfiuBU2mRLqZhPz aZd1jldSFeoUYJAXoOESUUpxiLMCbBY9bYkgJNrAdZQBJ4JlHSfZLXEBufh+GGaTHAKB zs1Q== X-Gm-Message-State: APzg51DsorzDnywfbnAHQ6dIyvPzViMLhxK+tCRu+xNJmcsJe1PDolnh K4+NxSlxhwctZSLzntcVW0cm7INYBGc= X-Received: by 2002:a50:9e2f:: with SMTP id z44-v6mr2517744ede.242.1535463570195; Tue, 28 Aug 2018 06:39:30 -0700 (PDT) Received: from localhost ([49.248.200.109]) by smtp.gmail.com with ESMTPSA id j10-v6sm610521ede.5.2018.08.28.06.39.28 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 28 Aug 2018 06:39:29 -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 v2 05/11] thermal: tsens: Get rid of dead code Date: Tue, 28 Aug 2018 19:08:34 +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 --- 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