Received: by 2002:a05:6358:e9c4:b0:b2:91dc:71ab with SMTP id hc4csp1727151rwb; Fri, 5 Aug 2022 06:57:53 -0700 (PDT) X-Google-Smtp-Source: AA6agR4ad8DodwpunN7xTzf9+pDEQ8gyyD3tAxzmdNXPGOeWKmoczpT+Dzo/u6JFBxq6XJq00Gks X-Received: by 2002:a05:6402:4301:b0:43e:4d31:6ec0 with SMTP id m1-20020a056402430100b0043e4d316ec0mr7005756edc.69.1659707872828; Fri, 05 Aug 2022 06:57:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659707872; cv=none; d=google.com; s=arc-20160816; b=BuCUmuC8ySY/EJYxsjKOJ3FpzDqzqvm+g4+4Xg/Depje5Doo74oCaxvLSmeaOSI+WB 7xmWRP6nSFriz9kdkzuQAeDwAslbghiNY5PCIYPb4aGHjtKP5PRUzOKuRZ6QEVBD9j7t /k/govI8ogpTN/aQWRrRQyvl5GtT7OypaBmKhrLTiVXdjSqxYo2VNKBgx6gibYpxJ3rQ 73gwDb0N/Qxxn1g0JfDVeeOlynZqtK3OFFgAFiHg6Ad+IEzDj1Gm4hb+/0/roymDAcs2 3g6OdUIdQ5bxhkwXO1XmLd71y85w422ezAX28AyHu5cgFqB/WsnPPy3Lq9HnOrBgdux8 uB1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :subject:cc:to:from:message-id:date:dkim-signature:dkim-signature; bh=8ZJtXObBVxiCT2sToLYj1tKthIk9MsTpx8FhQ9IVmR4=; b=x7XpNCuh0hhUyHW9DeJqzLwGXyhu4zGBpWApSMJcu6bftc5oGRDS4L+4ss8A1LHmMr yCvgE0JFDm/h17NhkkY5oHOrDp/RoKoH9HsTe0NIHTeRhH7fNX129SQqsyMmnekVgNXX TRCAFZOj5G91nb3DfLWH6yPXKizm51I0PBRPY6A42shz7h1htPGw4RIo8hgyy3Cnyrdz 3NmKH+mXT8V0oJXZgVHWXpD9H59Owc2aEPvpAMvx0FIQQh2tuUbTfMv9R8UOVe6IEy6v fTAXjt3LfkSUXgNCMpD3799qp3FwpxzhegrZiWPrUD2vlx3YXdk9rNsbb8NYrryFN4To IXXA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=L08puQC5; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id y3-20020a50eb83000000b0043dfb97250esi3786816edr.456.2022.08.05.06.57.28; Fri, 05 Aug 2022 06:57:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=L08puQC5; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240858AbiHENHi (ORCPT + 99 others); Fri, 5 Aug 2022 09:07:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59784 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240864AbiHENHg (ORCPT ); Fri, 5 Aug 2022 09:07:36 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 64F341ADA2; Fri, 5 Aug 2022 06:07:32 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 05E773445C; Fri, 5 Aug 2022 13:07:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1659704851; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8ZJtXObBVxiCT2sToLYj1tKthIk9MsTpx8FhQ9IVmR4=; b=L08puQC5utIC+eioBJj3hsTl02pG19UCPn3+ZT6RvgnWz//QD89n0BnAexNrb4e+46AGFO OXyQ1bLa6Il6HIl96uedJDWYo+ZLxhiQVqEKCePl8pkXUAyKzCelBqaXrRZ2krokk1ZWYX K3gjVYR72ZkFAGqghrDzYzDHfkis8+4= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1659704851; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8ZJtXObBVxiCT2sToLYj1tKthIk9MsTpx8FhQ9IVmR4=; b=idanaJzniKM0mV/0V1PptuR/uygn/fb/F7D9kFp5J+Flntf6SKJd9lmcG+bjboAOfSjlJ1 w5J5cimO3XTjSvAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id BA71213A9C; Fri, 5 Aug 2022 13:07:30 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id HSEhLBIW7WJMKQAAMHmgww (envelope-from ); Fri, 05 Aug 2022 13:07:30 +0000 Date: Fri, 05 Aug 2022 15:07:30 +0200 Message-ID: <87k07m260d.wl-tiwai@suse.de> From: Takashi Iwai To: Colin Ian King Cc: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: ice1712: remove redundant assignment to new In-Reply-To: <20220805120439.2341600-1-colin.i.king@gmail.com> References: <20220805120439.2341600-1-colin.i.king@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 05 Aug 2022 14:04:39 +0200, Colin Ian King wrote: > > The variable new is initialized with a value but it is never read. It is > being re-assigned a new value in every case path in the following switch > statement. The assignment is redundant and can be removed. > > Cleans up clang scan build warning: > sound/pci/ice1712/quartet.c:569:8: warning: Although the value stored > to 'new' is used in the enclosing expression, the value is never actually > read from 'new' [deadcode.DeadStores] > > Signed-off-by: Colin Ian King Thanks, applied. Takashi