From patchwork Fri Mar 6 16:41:42 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 5956441 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 656B59F380 for ; Fri, 6 Mar 2015 16:42:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 55AFD2039D for ; Fri, 6 Mar 2015 16:42:15 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 185222039C for ; Fri, 6 Mar 2015 16:42:14 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 08370265DFC; Fri, 6 Mar 2015 17:42:13 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, NO_DNS_FOR_FROM, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 13A98265DE2; Fri, 6 Mar 2015 17:42:05 +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 C7282265DE3; Fri, 6 Mar 2015 17:42:03 +0100 (CET) Received: from mail-qc0-f175.google.com (mail-qc0-f175.google.com [209.85.216.175]) by alsa0.perex.cz (Postfix) with ESMTP id C9DA9265DE2 for ; Fri, 6 Mar 2015 17:41:55 +0100 (CET) Received: by qcvs11 with SMTP id s11so17724596qcv.7 for ; Fri, 06 Mar 2015 08:41:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=qFvNpGMuOtuCeh0kFjan5383d4B91rBgHh4oPaKAaHg=; b=YLJy15wmWQBIdwdRMOjQuKWxOi4XKIuJ4hY49nyZSxS5SXifLRmBPyOyuCO/P5Mdbm zZijlDl90pbPrY3O75JfoZydg+fIk0avw8eZGN8rc5RVWCAV48/kPeJEg7Qq6Zwu2W1J cDpVwkFF8HShQfLgbmGOsUo+TdxgzM+giv7puB8e9ZuvM+kzJCSdml4/0H+TwWgBG+3C Ws7ntqzRxRgi40tXy6YTgRoMERiLg9MfpsVEp5fUymffEqwTG/TMBIWyQJHBb/Q0z9e8 7hRcAW/EYd7TqzjoQ6Bjr6+uM55nPf9zytPfUg/lhuwjS2HBGKTk14MjCRe1cRgQiVEq qJSQ== X-Received: by 10.140.148.195 with SMTP id 186mr20277389qhu.60.1425660114808; Fri, 06 Mar 2015 08:41:54 -0800 (PST) Received: from localhost.localdomain ([177.194.98.53]) by mx.google.com with ESMTPSA id p38sm6053755qga.29.2015.03.06.08.41.52 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Mar 2015 08:41:53 -0800 (PST) From: Fabio Estevam To: tiwai@suse.de Date: Fri, 6 Mar 2015 13:41:42 -0300 Message-Id: <1425660102-5419-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 Cc: Fabio Estevam , mail@maciej.szmigiero.name, alsa-devel@alsa-project.org Subject: [alsa-devel] [PATCH] ALSA: ac97: ac97_patch: Simplify patch_vt1613_specific() 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 From: Fabio Estevam We can simplify the code by returning patch_build_controls() directly. Signed-off-by: Fabio Estevam --- sound/pci/ac97/ac97_patch.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/sound/pci/ac97/ac97_patch.c b/sound/pci/ac97/ac97_patch.c index eca2210..f4234ed 100644 --- a/sound/pci/ac97/ac97_patch.c +++ b/sound/pci/ac97/ac97_patch.c @@ -3360,14 +3360,8 @@ AC97_SINGLE("DC Offset removal", 0x5a, 10, 1, 0), static int patch_vt1613_specific(struct snd_ac97 *ac97) { - int err; - - err = patch_build_controls(ac97, &snd_ac97_controls_vt1613[0], - ARRAY_SIZE(snd_ac97_controls_vt1613)); - if (err) - return err; - - return 0; + return patch_build_controls(ac97, &snd_ac97_controls_vt1613[0], + ARRAY_SIZE(snd_ac97_controls_vt1613)); }; static const struct snd_ac97_build_ops patch_vt1613_ops = {