From patchwork Sun Dec 7 01:16:44 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5451001 Return-Path: X-Original-To: patchwork-linux-arm-msm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1B57DBEEA8 for ; Sun, 7 Dec 2014 01:14:11 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7C006200ED for ; Sun, 7 Dec 2014 01:14:09 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 8E470200E1 for ; Sun, 7 Dec 2014 01:14:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752546AbaLGBOH (ORCPT ); Sat, 6 Dec 2014 20:14:07 -0500 Received: from mail-wg0-f48.google.com ([74.125.82.48]:36262 "EHLO mail-wg0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751320AbaLGBOG (ORCPT ); Sat, 6 Dec 2014 20:14:06 -0500 Received: by mail-wg0-f48.google.com with SMTP id y19so3659468wgg.35 for ; Sat, 06 Dec 2014 17:14:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=pszm0b6TW6e87GkBCXty9aXTn6do5cBbUCZES1R2eeA=; b=M0uoZW9JS1VDcf2Mm8e8jpsV9dLPhdLW9u0dU1Fw1smwrUh4rh7a+FLwPC9Pwb7tZt oEk58jFXYJPw8odiV+Hrhcn/SQmkMYn8G7tgXX0OpSxl275nlOetNTZN1kDn+BEEQUmg 041/jPDSlRW6y12QhNxf4nAiIdmld1axuyxHmIq/HJ5k4pNT/i7+FMsq0E0hr3WrdQW/ 7KvchphBNVMd5W5ma3cn/bPVf/5fUnfEQAWEBfY4VIwNtWQYtzslSEV7pV3SeeRqXDcy iA4vhHMRpZQLY/Qf/mUUvU9PD/peTo4yQNhhHQPaLcPo1PpPNk76yiOjxemdi3d8hOpP x+XA== X-Gm-Message-State: ALoCoQluVAMPkDBIyNb1bv9/n9WHsdIxmGk0BQ0AUHCjmJbmj0kN/8Eg8yOvJ7rg57kOPIA8wnEz X-Received: by 10.180.109.45 with SMTP id hp13mr14112107wib.4.1417914844462; Sat, 06 Dec 2014 17:14:04 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id vy7sm50615399wjc.27.2014.12.06.17.14.03 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 06 Dec 2014 17:14:03 -0800 (PST) From: Rickard Strandqvist To: David Brown , Daniel Walker Cc: Rickard Strandqvist , Bryan Huntsman , Russell King , linux-arm-msm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] arch: arm: mach-msm: vreg.c: Remove unused function Date: Sun, 7 Dec 2014 02:16:44 +0100 Message-Id: <1417915004-8574-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function vreg_put() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- arch/arm/mach-msm/include/mach/vreg.h | 1 - arch/arm/mach-msm/vreg.c | 4 ---- 2 files changed, 5 deletions(-) diff --git a/arch/arm/mach-msm/include/mach/vreg.h b/arch/arm/mach-msm/include/mach/vreg.h index 6626e78..28351ff 100644 --- a/arch/arm/mach-msm/include/mach/vreg.h +++ b/arch/arm/mach-msm/include/mach/vreg.h @@ -20,7 +20,6 @@ struct vreg; struct vreg *vreg_get(struct device *dev, const char *id); -void vreg_put(struct vreg *vreg); int vreg_enable(struct vreg *vreg); int vreg_disable(struct vreg *vreg); diff --git a/arch/arm/mach-msm/vreg.c b/arch/arm/mach-msm/vreg.c index bd66ed0..0bf891d 100644 --- a/arch/arm/mach-msm/vreg.c +++ b/arch/arm/mach-msm/vreg.c @@ -96,10 +96,6 @@ struct vreg *vreg_get(struct device *dev, const char *id) return ERR_PTR(-ENOENT); } -void vreg_put(struct vreg *vreg) -{ -} - int vreg_enable(struct vreg *vreg) { unsigned id = vreg->id;