Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp1885241pxm; Fri, 4 Mar 2022 05:31:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwR/tnJs4I74uy14oXCK7/ZnKKBttk7JJq6lVbTDN9qlE/xMUok+Np3tt2q4EMhXeRG38YT X-Received: by 2002:a17:906:a1a:b0:6cf:d2d9:410c with SMTP id w26-20020a1709060a1a00b006cfd2d9410cmr31617758ejf.713.1646400685038; Fri, 04 Mar 2022 05:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1646400685; cv=none; d=google.com; s=arc-20160816; b=f9WB0AsOEmVMZEwA96kjB5zZ+avb1jr81aV5sgOtJgG7zkkGLRa6tGVyZM7kLYbG8D KWnX/5tq5X5Cck3neqj3su4fj9uSf/HLbWpyce2L+1ekY34VJv19FyidwF24iTNurab7 rWkV3P+7i4TwVMETbRb/N7pndWqjoosUKkjjKZt8wRwrvjnXgMCdjkcjLSL6s8WBlRP8 WKDZ7Vn3t3fqeOtKHmsd6rvuuxxCV9SQLqLSbeGNsvM7ojBql52y7uhJUrmZyosiW7wx 9eosZhtJEbTZOiwX5ooS8DcUWp38fvb1c80zYUhlYp/kIUsYGZGR9XMt7+P2MLV6Gzax P0yw== 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=slqWuDwOoH/Q5XlOhkioyiGZ0ilW0OBu5hUs4LHxwxA=; b=0T+wTonpEs7sVHc3rIm8Is1Em8iowDyk/2AUSUMnUykA/tQgJZU1+CFzDd9d3XIJhO fuv0oRo5sJkJaU90OzQjG4wt/Cily4I7l0vzN+aXltqDNPFX4KIplfsg86w947bYnaGv VnH1kGD3/SjFm5dSSOH6IFwq0Ezxhqf6d+FWkaSEWlQBOYuSRqH7g4ianjJHOctXe0JF 3jkJ+iZt6oA8ui8cML3OkyhKYwVZvfAgpu5ErfBtX8fYihYPy1BeOCvsJugFp/kUWbwN lFAyxP5a0/RJulvozuv/mLkMvvOg6Rl6K1Si1l/6+qDWMsQVLpTr42nGpuMmk6crTD2J z7vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=CJjoqG1K; dkim=neutral (no key) header.i=@suse.de header.b=nGdOjxJi; 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 l2-20020a170906794200b006daa207fb4csi2450430ejo.769.2022.03.04.05.30.58; Fri, 04 Mar 2022 05:31:25 -0800 (PST) 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=CJjoqG1K; dkim=neutral (no key) header.i=@suse.de header.b=nGdOjxJi; 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 S234983AbiCDIwS (ORCPT + 99 others); Fri, 4 Mar 2022 03:52:18 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232134AbiCDIwO (ORCPT ); Fri, 4 Mar 2022 03:52:14 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F318519DEA7; Fri, 4 Mar 2022 00:51:26 -0800 (PST) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id A4C8E21136; Fri, 4 Mar 2022 08:51:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1646383885; 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=slqWuDwOoH/Q5XlOhkioyiGZ0ilW0OBu5hUs4LHxwxA=; b=CJjoqG1Kh563odELWTDZkXLiqEDm+WjyISHd5xwzsNAhGqqw/VajH3xLlE9tlJxkcLbASy ReDQ5Jayk8E+eQfPurL4RYjuWWXJm+lEhQPdHFVW96qv4olsmKsHXsbbP38hziUezy3BCc HiCbWHBhoIqdWwJ5myzr10lydClipoY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1646383885; 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=slqWuDwOoH/Q5XlOhkioyiGZ0ilW0OBu5hUs4LHxwxA=; b=nGdOjxJiB8ElSvqgH5B1ZDOIKsxBc3K6YbRTDuh+qkY2fD/s98hl908MXPlc1WKYs2oj1s X7HLpiTPpHQZntCA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 877EAA3B83; Fri, 4 Mar 2022 08:51:25 +0000 (UTC) Date: Fri, 04 Mar 2022 09:51:25 +0100 Message-ID: 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, llvm@lists.linux.dev Subject: Re: [PATCH] ALSA: echoaudio: remove redundant assignment to variable bytes In-Reply-To: <20220302170728.1094633-1-colin.i.king@gmail.com> References: <20220302170728.1094633-1-colin.i.king@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,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 Wed, 02 Mar 2022 18:07:28 +0100, Colin Ian King wrote: > > The variable bytes is being assigned a value that is never read, it > is being re-assigned inside a following if block. The assignment is > redundant and can be removed. > > Cleans up clang scan build warning: > sound/pci/echoaudio/midi.c:211:9: warning: Although the value stored > to 'bytes' is used in the enclosing expression, the value is never > actually read from 'bytes' [deadcode.DeadStores] > > Signed-off-by: Colin Ian King Thanks, applied. Takashi