From patchwork Sat Dec 20 17:03:24 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rickard Strandqvist X-Patchwork-Id: 5523011 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.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EBCA79F30B for ; Sat, 20 Dec 2014 17:01:00 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 2F39D20158 for ; Sat, 20 Dec 2014 17:01:00 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 0ACEC2012B for ; Sat, 20 Dec 2014 17:00:59 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 1AAE5260504; Sat, 20 Dec 2014 18:00:57 +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,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 CBAE2260494; Sat, 20 Dec 2014 18:00:46 +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 B4F652604AA; Sat, 20 Dec 2014 18:00:45 +0100 (CET) Received: from mail-la0-f42.google.com (mail-la0-f42.google.com [209.85.215.42]) by alsa0.perex.cz (Postfix) with ESMTP id A868226048E for ; Sat, 20 Dec 2014 18:00:37 +0100 (CET) Received: by mail-la0-f42.google.com with SMTP id gd6so2319742lab.15 for ; Sat, 20 Dec 2014 09:00:37 -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=5NRbwa21uAsfWgEeFJ5OCdJ8YxVCnw8fGJN0Ix5Sar0=; b=jWIsSOigUlxOzkGt3ykLCqy/r8bAOjqDqLreOsRZ3mOwOAypR+HV1LnQkIVYxVq8CN VXzCqpkccBalz8DVQFWbZtEwrACMleBRL4ZDC/+F5oSu0HNB/nBFekDcvI6WAB3CUOLV DHcjGVXhwR1LA21T+SnldbEhvwYGfUFpCxbI0UDrORTKCyBq+5e4pNphkBpndrmft85R KH79HPs7SJqdgjj19mexY+GaD4FjkrcKWkOBSjr9ipktiHjxLplgSwy8E22BAZvwrYNu e7an0W1ACMDCvVn5Zp7kBgxkg5/ZKWAuBo+DuwZEGzu9LUlqXCb//PApPqt6tHJM+ce8 32Lg== X-Gm-Message-State: ALoCoQnOOzRUQvJ/7+Y8cJMh1cHD8PFmZ7r4eCagAad3n8xcbJPoSxrEzxBVoGx8QsB+LBgwzLBk X-Received: by 10.112.168.164 with SMTP id zx4mr13577020lbb.28.1419094837140; Sat, 20 Dec 2014 09:00:37 -0800 (PST) Received: from localhost.localdomain (h-246-111.a218.priv.bahnhof.se. [85.24.246.111]) by mx.google.com with ESMTPSA id vu9sm3672450lbb.36.2014.12.20.09.00.36 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 20 Dec 2014 09:00:36 -0800 (PST) From: Rickard Strandqvist To: Jaroslav Kysela , Takashi Iwai Date: Sat, 20 Dec 2014 18:03:24 +0100 Message-Id: <1419095004-9727-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: isa: gus: gus_instr.c: 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 snd_gus_simple_remove_sample() that is not used anywhere. This was partially found by using a static code analysis program called cppcheck. Signed-off-by: Rickard Strandqvist --- sound/isa/gus/gus_instr.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sound/isa/gus/gus_instr.c b/sound/isa/gus/gus_instr.c index 4dc9caf..2d21408 100644 --- a/sound/isa/gus/gus_instr.c +++ b/sound/isa/gus/gus_instr.c @@ -162,11 +162,3 @@ int snd_gus_simple_get_sample(void *private_data, struct simple_instrument *inst return snd_gus_dram_read(gus, data, instr->address.memory, instr->size, 0); } - -int snd_gus_simple_remove_sample(void *private_data, struct simple_instrument *instr, - int atomic) -{ - struct snd_gus_card *gus = private_data; - - return snd_gf1_mem_free(&gus->gf1.mem_alloc, instr->address.memory); -}