Message ID | 20231023154917.671595-1-colin.i.king@gmail.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ce89:0:b0:403:3b70:6f57 with SMTP id p9csp1386457vqx; Mon, 23 Oct 2023 08:49:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGPSsRCItf2OsRS5LvN/VwAwLTYvHeamidVJIzKnU1CMmyJoDDU9o4wpJZVz+yqkAJK7tO/ X-Received: by 2002:a05:6870:3e08:b0:1e9:892b:eaa0 with SMTP id lk8-20020a0568703e0800b001e9892beaa0mr12136906oab.9.1698076188884; Mon, 23 Oct 2023 08:49:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698076188; cv=none; d=google.com; s=arc-20160816; b=YOgNgYaHNjEFx3QGSOrRhD6pJKUN/tbF/0kiUtycYuIDTZMf1w33FcOiOc8oelfzVN vDZwaiuZboD1fLR3VBxRjoOjiata0qk7inkR+aUIx+EgKw36W6t62/0Rrhtz2b5kX0lD EZgDO5c14or7P+7lIUMDH4V0KyhVisHvNWrCZBQX+mHPztz+rKBV5arC2nLu6uOrqtD2 YKD0Ew0e3E9yW5/FEJSHmFoyt7P6EQ4wfmEcVQRaN4sr6zmMpdvN5CsHwL0zbfJC6Pbn JkKgfHSL5RWTS95XQVSnkuV4UuUKLVOLtDEVmtvs7MKjtmYUuNk63m7vuRrzn3L9WAHE G+lA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=99vvqY3a62R+FSNgedTvGTn1Ho9xYE+BPOA4cYmL7ss=; fh=11MwTFFXwC73zfyeBhV4OCmUaqQp82v+WhQmk98r7E4=; b=U1IMo++usDgGlI4ZP5Gl0aUPEeC0topiNNogmZBh7AcktMcVM4TgTbNb3DPHDSkwrR 1bsbhKwbaj0kHS7c1Z6oPo7nbGDnhyxAjOHe6nzHOZnqZBAbKXOdXS/APsDMTMmkN+Kp kWEtYjdLAYKdUj2OETK7zcg82ROWCJzeto6YiZUB8Sis3FXpu0lBNZHKCiUpx2DrExpI 9B+EBEeNVkk/6tcT0naARvV9+Dg+5ZMsBkf7N7GDQWar1szEL8qCSGykCHQtoiwFznai 0ivIKpXoBPkhjR3Wdv5DNdCpqxrKxctJh6pIeMk78aQni6XdW6fSqiPQqhbXtsmkjiZa QNJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FovKsoKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id v202-20020a6361d3000000b005898e10f9cbsi6675413pgb.572.2023.10.23.08.49.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:49:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=FovKsoKo; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id C706A80AD135; Mon, 23 Oct 2023 08:49:46 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232409AbjJWPtZ (ORCPT <rfc822;aposhian.dev@gmail.com> + 27 others); Mon, 23 Oct 2023 11:49:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38588 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232212AbjJWPtW (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 23 Oct 2023 11:49:22 -0400 Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 108B0101; Mon, 23 Oct 2023 08:49:20 -0700 (PDT) Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-4083dbc43cfso25385795e9.3; Mon, 23 Oct 2023 08:49:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698076158; x=1698680958; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=99vvqY3a62R+FSNgedTvGTn1Ho9xYE+BPOA4cYmL7ss=; b=FovKsoKoQBOTOMoCbnso84aoD1fKPtCM7hvJhFBKTXmuV+7LoFB8SlQsWONlMgqTJW Supzfz8jT4CNxjxpuG6SSOrW3otFA9VDGrRE5C7pof2D0iDli/pyUypITK8AZlKjpdEo cNEOHaVKcPW0gLwN5dAi25lg3tCwXx7egACdMqwOToGsIesUjgzODYXipbgSUeFWWCR9 rM8f/8yX0Urz+4HJy1jlKxmEEfeF/xQzZm0j0nfIEiDE+eDh09BFRwkl71PDenqlKeXU mXOcO8NStbNlIEOaL677BJYKUAowpAnQ9N2q4ZgpPm1q0J6xoyDbwJOyOQBsSWx3GHBA LIPA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698076158; x=1698680958; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=99vvqY3a62R+FSNgedTvGTn1Ho9xYE+BPOA4cYmL7ss=; b=jRko4kBSRo6b6TuZ/7jQ50kxO9lrbT5+kZWYrD28zhNzsqYFW6m2BaKz5IW2r4wM9J 9rVXh39zuDYBt6HoWJU40UYOkBLdiKCHBTmxCfKJOjYaV4/TelZKhkBPdPJ0FXqsOl8C d6Vm/PeWteM/x2ohVLKPfO8bHforO7g6H11ja3D5fvqE+gxR+xmD+P9fgeNNuDu9Ew6H Imka4CVlc6vsji/DjmV2vAMmgtsW/sWMX6VBGFp/hZ0wATfjjoc6E9AOzDAeIH4pLs+/ Mitd430Egu8J/431Pi6xJkwwZahbp9M4oFVx5XZ/ZmgGvkwuk02M+vieyMuWqTeAzyUs d6Uw== X-Gm-Message-State: AOJu0YwJAM0cQTkDzRmqVPuNCTLntUykXD1/PBdmToXnC6L8XE5kmDqJ 0twPLXlQwSWwjkDEtHrNGeo= X-Received: by 2002:a05:600c:4f12:b0:401:bdd7:49ae with SMTP id l18-20020a05600c4f1200b00401bdd749aemr8315715wmq.18.1698076158310; Mon, 23 Oct 2023 08:49:18 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id b24-20020a05600c06d800b004064e3b94afsm14420510wmn.4.2023.10.23.08.49.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 23 Oct 2023 08:49:17 -0700 (PDT) From: Colin Ian King <colin.i.king@gmail.com> To: Oder Chiou <oder_chiou@realtek.com>, Liam Girdwood <lgirdwood@gmail.com>, Mark Brown <broonie@kernel.org>, Jaroslav Kysela <perex@perex.cz>, Takashi Iwai <tiwai@suse.com>, alsa-devel@alsa-project.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH][next] ASoC: codecs: rt298: remove redundant assignment to d_len_code Date: Mon, 23 Oct 2023 16:49:17 +0100 Message-Id: <20231023154917.671595-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Mon, 23 Oct 2023 08:49:46 -0700 (PDT) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1780561937809825375 X-GMAIL-MSGID: 1780561937809825375 |
Series |
[next] ASoC: codecs: rt298: remove redundant assignment to d_len_code
|
|
Commit Message
Colin Ian King
Oct. 23, 2023, 3:49 p.m. UTC
Variable d_len_code is being initialized to zero and then re-assigned a
different value in all the valid cases in the following switch statement.
The only place it is not being assigned a value is on the return for
a default case and in this case it does not need to be assigned. The
initialization is redundant and can be removed.
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
---
sound/soc/codecs/rt298.c | 1 -
1 file changed, 1 deletion(-)
Comments
On Mon, 23 Oct 2023 16:49:17 +0100, Colin Ian King wrote: > Variable d_len_code is being initialized to zero and then re-assigned a > different value in all the valid cases in the following switch statement. > The only place it is not being assigned a value is on the return for > a default case and in this case it does not need to be assigned. The > initialization is redundant and can be removed. > > > [...] Applied to https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next Thanks! [1/1] ASoC: codecs: rt298: remove redundant assignment to d_len_code commit: 91e174fc04b1975b0e4d431a7020779635ff7c05 All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark
diff --git a/sound/soc/codecs/rt298.c b/sound/soc/codecs/rt298.c index 8fbd25ad9b47..ad3783ade1b5 100644 --- a/sound/soc/codecs/rt298.c +++ b/sound/soc/codecs/rt298.c @@ -789,7 +789,6 @@ static int rt298_hw_params(struct snd_pcm_substream *substream, return -EINVAL; } - d_len_code = 0; switch (params_width(params)) { /* bit 6:4 Bits per Sample */ case 16: