From patchwork Sat Jan 17 16:35:28 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5652191 Return-Path: X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id B06F29F3A0 for ; Sat, 17 Jan 2015 16:32:39 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E09D520384 for ; Sat, 17 Jan 2015 16:32:38 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id B56B52021A for ; Sat, 17 Jan 2015 16:32:37 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id EFF7F260671; Sat, 17 Jan 2015 17:32:35 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,NO_DNS_FOR_FROM, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 5FDB2260642; Sat, 17 Jan 2015 17:32:28 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id C85C9260645; Sat, 17 Jan 2015 17:32:26 +0100 (CET) Received: from mail-wi0-f172.google.com (mail-wi0-f172.google.com [209.85.212.172]) by alsa0.perex.cz (Postfix) with ESMTP id D1915260544 for ; Sat, 17 Jan 2015 17:32:19 +0100 (CET) Received: by mail-wi0-f172.google.com with SMTP id bs8so9705874wib.5 for ; Sat, 17 Jan 2015 08:32:19 -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=T8zMRSTEXKKlylg97N9n7WbGnmoNhsJBGmZMPHKJ6Gw=; b=eJQd927VqjnjzYEM1hpQuUP3pRqhJP6ucr0yPOYrM8GNwuaQV4sQMZ8zStiuGly2Fq p7Bbah3hNx3IkC1IZmL5fjPeUCKGh6GCp5h6WYYIJBjjb4/TczA4lcdThkpY+Ki9B8+m utCl5fn57AoPzYKX2N6nKYKSVLIaVbOhUuLTvaBig4SCyR7lBTJfk8AI6lma7fVLJXpK ETathYgjnpMPUURmwdD0E6yrOwUvHdB1tS12yphwZHlAuXxNJUtOgXl1MK6XnXR5S+G7 nm47S1Uo5yAEIciivrmO70ISZ0XfJiDg0kP/uOdF57x2apCiyPXMG32QUp7/PSnMsyPW PKKA== X-Gm-Message-State: ALoCoQlCqGMdCpBpcygAAguS2yCvNXwAzzk9F3AL6x6I7EWAh1V3nZb4Z/cIBoAo2q1ZgVQu/Z10 X-Received: by 10.194.104.129 with SMTP id ge1mr4664120wjb.30.1421512339373; Sat, 17 Jan 2015 08:32:19 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id h8sm7268125wiy.4.2015.01.17.08.32.17 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Jan 2015 08:32:18 -0800 (PST) From: Rickard Strandqvist To: Jaroslav Kysela , Takashi Iwai Date: Sat, 17 Jan 2015 17:35:28 +0100 Message-Id: <1421512528-14864-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Cc: alsa-devel@alsa-project.org, Rickard Strandqvist , linux-kernel@vger.kernel.org, Eliot Blennerhassett , Benoit Taine , Dan Carpenter Subject: [alsa-devel] [PATCH] ALSA: asihpi: asihpi: Remove unused function X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP Remove the function hpi_stream_group_get_map() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- sound/pci/asihpi/asihpi.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index e9273fb..920b15e 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c @@ -271,15 +271,6 @@ static inline u16 hpi_stream_group_reset(u32 h_stream) return hpi_instream_group_reset(h_stream); } -static inline u16 hpi_stream_group_get_map( - u32 h_stream, u32 *mo, u32 *mi) -{ - if (hpi_handle_object(h_stream) == HPI_OBJ_OSTREAM) - return hpi_outstream_group_get_map(h_stream, mo, mi); - else - return hpi_instream_group_get_map(h_stream, mo, mi); -} - static u16 handle_error(u16 err, int line, char *filename) { if (err)