From patchwork Sun Dec 7 14:01:15 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5451931 Return-Path: X-Original-To: patchwork-alsa-devel@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 78EADBEEA8 for ; Sun, 7 Dec 2014 13:59:03 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AF6D72012E for ; Sun, 7 Dec 2014 13:59:02 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 88F2A200C6 for ; Sun, 7 Dec 2014 13:59:01 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 40F4426068E; Sun, 7 Dec 2014 14:59:00 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id E3A0126066C; Sun, 7 Dec 2014 14:58:49 +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 C8E9026066F; Sun, 7 Dec 2014 14:58:48 +0100 (CET) Received: from mail-wg0-f42.google.com (mail-wg0-f42.google.com [74.125.82.42]) by alsa0.perex.cz (Postfix) with ESMTP id 01CEB26066C for ; Sun, 7 Dec 2014 14:58:35 +0100 (CET) Received: by mail-wg0-f42.google.com with SMTP id z12so4366507wgg.29 for ; Sun, 07 Dec 2014 05:58:35 -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=3cotnkKQCvK/GkOKApD2NR9/OJ9jP1eMVsXHPps9YGQ=; b=F2fYLp2OTcCyZe31/PwBaD8GGUWLLajCcEw/NTpBqniT7tIwgMFCojEz+0dVNU9ua1 ajgSFjLpI5KF1VswLQN/4DxrJMfhQKkDe/59NBCRHRoFUww317z7xQMpFfz5aqkeEBGd T+h6M6nagNNyViWBD+F4gf9hjbgA0Vp/a9PjUDEc0on8JedFlJMQ5oDL9lkwQbbIWubl nxERD2XZkebgUpX5loIsW/MrETtVO1dzcAp4HykBi8qREASH4VRj4Z7PIJQO79yCHv5j EyPKvU1M2o5tI9WRUHk1Dmmlc6KeaL3aBLDgIgZ3/7Pk9JTgt4Xri4x67XK/2eTn0Vxk 5hKQ== X-Gm-Message-State: ALoCoQmuOQ1vfMzYT8PrdJswegPIFqVSfyBPmm2R7M5DDL9EKcFhfJnUqcwzz/nVROmm+uxBCmsU X-Received: by 10.194.90.244 with SMTP id bz20mr38763348wjb.125.1417960715683; Sun, 07 Dec 2014 05:58:35 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id be4sm5853718wib.16.2014.12.07.05.58.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Dec 2014 05:58:35 -0800 (PST) From: Rickard Strandqvist To: Jaroslav Kysela , Takashi Iwai Date: Sun, 7 Dec 2014 15:01:15 +0100 Message-Id: <1417960875-11753-1-git-send-email-rickard_strandqvist@spectrumdigital.se> X-Mailer: git-send-email 1.7.10.4 Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Rickard Strandqvist Subject: [alsa-devel] [PATCH] sound: pci: asihpi: hpifunc.c: Remove some unused functions 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 Removes some functions that are not used anywhere: hpi_subsys_get_version_ex() hpi_instream_wait_start() This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- sound/pci/asihpi/hpi.h | 4 ---- sound/pci/asihpi/hpifunc.c | 27 --------------------------- 2 files changed, 31 deletions(-) diff --git a/sound/pci/asihpi/hpi.h b/sound/pci/asihpi/hpi.h index 2088724..8338b6e 100644 --- a/sound/pci/asihpi/hpi.h +++ b/sound/pci/asihpi/hpi.h @@ -1164,8 +1164,6 @@ u16 hpi_stream_estimate_buffer_size(struct hpi_format *pF, /* SubSystem */ /*************/ -u16 hpi_subsys_get_version_ex(u32 *pversion_ex); - u16 hpi_subsys_get_num_adapters(int *pn_num_adapters); u16 hpi_subsys_get_adapter(int iterator, u32 *padapter_index, @@ -1289,8 +1287,6 @@ u16 hpi_instream_read_buf(u32 h_instream, u8 *pb_read_buf, u32 bytes_to_read); u16 hpi_instream_start(u32 h_instream); -u16 hpi_instream_wait_start(u32 h_instream); - u16 hpi_instream_stop(u32 h_instream); u16 hpi_instream_reset(u32 h_instream); diff --git a/sound/pci/asihpi/hpifunc.c b/sound/pci/asihpi/hpifunc.c index 510e56c..8fd02dd 100644 --- a/sound/pci/asihpi/hpifunc.c +++ b/sound/pci/asihpi/hpifunc.c @@ -93,18 +93,6 @@ static inline void hpi_send_recvV1(struct hpi_message_header *m, hpi_send_recv((struct hpi_message *)m, (struct hpi_response *)r); } -u16 hpi_subsys_get_version_ex(u32 *pversion_ex) -{ - struct hpi_message hm; - struct hpi_response hr; - - hpi_init_message_response(&hm, &hr, HPI_OBJ_SUBSYSTEM, - HPI_SUBSYS_GET_VERSION); - hpi_send_recv(&hm, &hr); - *pversion_ex = hr.u.s.data; - return hr.error; -} - u16 hpi_subsys_get_num_adapters(int *pn_num_adapters) { struct hpi_message hm; @@ -950,21 +938,6 @@ u16 hpi_instream_start(u32 h_instream) return hr.error; } -u16 hpi_instream_wait_start(u32 h_instream) -{ - struct hpi_message hm; - struct hpi_response hr; - - hpi_init_message_response(&hm, &hr, HPI_OBJ_ISTREAM, - HPI_ISTREAM_WAIT_START); - if (hpi_handle_indexes(h_instream, &hm.adapter_index, &hm.obj_index)) - return HPI_ERROR_INVALID_HANDLE; - - hpi_send_recv(&hm, &hr); - - return hr.error; -} - u16 hpi_instream_stop(u32 h_instream) { struct hpi_message hm;