Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp467773pxj; Fri, 14 May 2021 07:50:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyhKKh2AqrpKWupwzU+Jh5OSaJ2bfrQquAFHWuAZq9sF+z0h8zdXFb/lsmTw7SqFMKpzeNV X-Received: by 2002:a05:6638:29a:: with SMTP id c26mr43843838jaq.135.1621003817608; Fri, 14 May 2021 07:50:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621003817; cv=none; d=google.com; s=arc-20160816; b=gpEtWliErczrhJwrCSYk55KeYzAYryeBtHZ9aYYFWWRmhSP/j6UnwWqw2B0mJrNYLj ffpyPJrEC6ALvEMc0dDSLTbNc7m+Y80aJvSpm1UFZp/8/JrUYD2Ly+wmN7Mr85nXrCG0 6R+0b0z0B4ouXcsrGvOl2o7N8+sUsiD7j5Q8Ha2tO2VIf6zqPrzFwvVqNwnKnLrBeUs5 IXVB9yzjXc8ZqjX7/8aLkvs0ajZ9BPv9y9kJ/xMCtYWDK/jCKxoQuEZtjAU9If+efLVt 8y0uKvvtOo4h0foCpgdpGLVah4/WAthfS0DoeiCpepqjyehQydSklOersHnyhgyyr5ym /Img== 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; bh=Imn85NGF9i1jrd/YQ8KMQLK+aqSmSWjtgWgcc4Y4DAo=; b=y0LltK0PjM/aMpJ8OrWb8E/kT0L8MYMIEKo92hj3fAvn7d3YfBUWvJkO80TpzkGCKg KUhtI2RqyzWko0JjaaSjkDNo1h5It6PT3gpwginkUuZLA4KJO8pambP7Swh5Z50XgcuD saWxTBQDoZRlkUIQSDxTc9BTICT/J6G0GxCbnelVZZ0HbO4I5h/+6Cnmty21KCCdsr9Q rl+NCWiTcAcQke4FXUq84rVRM6sfhNt4bbCp/tNbvZqt8PPQoeEOg8J8szSU5agFrwdv OaldAsK4ek1tQt90YUNw0uvzE4YFbcY0c93oIUfKgEaLKwG6fcfDYv4fF4o6XnAikstJ CFhA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n14si7792335ilt.105.2021.05.14.07.50.04; Fri, 14 May 2021 07:50:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233057AbhENHkY (ORCPT + 99 others); Fri, 14 May 2021 03:40:24 -0400 Received: from mx2.suse.de ([195.135.220.15]:53786 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232801AbhENHkY (ORCPT ); Fri, 14 May 2021 03:40:24 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 594B4B01E; Fri, 14 May 2021 07:39:12 +0000 (UTC) Date: Fri, 14 May 2021 09:39:12 +0200 Message-ID: From: Takashi Iwai To: Jiapeng Chong Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] ALSA: hda: generic: Remove redundant assignment to dac In-Reply-To: <1620904271-76027-1-git-send-email-jiapeng.chong@linux.alibaba.com> References: <1620904271-76027-1-git-send-email-jiapeng.chong@linux.alibaba.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 13 May 2021 13:11:11 +0200, Jiapeng Chong wrote: > > Variable dac is set to zero, but this value is never read as it is > overwritten or not used later on, hence it is a redundant assignment > and can be removed. > > Clean up the following clang-analyzer warning: > > sound/pci/hda/hda_generic.c:1436:4: warning: Value stored to 'dac' is > never read [clang-analyzer-deadcode.DeadStores]. > > Reported-by: Abaci Robot > Signed-off-by: Jiapeng Chong > --- > Changes in v2: > -For the follow advice: https://lore.kernel.org/patchwork/patch/1423536/ Thanks, applied. Takashi