Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2966940rdb; Tue, 6 Feb 2024 03:19:28 -0800 (PST) X-Google-Smtp-Source: AGHT+IGlHYY0x8eVvw8DClN/rodKuGjVdu2Q2g7G5EEHBjH6yEYa1hn9nOW0VeZa1wKYuPFcqmQV X-Received: by 2002:a17:90a:fb98:b0:296:9de5:142f with SMTP id cp24-20020a17090afb9800b002969de5142fmr2176482pjb.45.1707218368234; Tue, 06 Feb 2024 03:19:28 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707218368; cv=pass; d=google.com; s=arc-20160816; b=IcKDAGGEtlJbbDphXCfZ0lz163xQKXwpPxPiaFpn/C2gFZxegyVEN05YHWaNfriv82 0nGrWWyCLNFp5Wp9MA8M91JCIwMx4y4aBbXzv3Gzz2jpXXgcLiZ7MhyoeJ5DBtwh5OWB 3+4sL5FWNsCl0j2+G62EkZGY0Wsw4cdAV2sfvoA6/kD3Ct+C8Vp1KiP6w1kXwNOxVIqK 1UUno/N4w5uLlpcC2nAP2w6bVa925Bteg1eULvx1L6L88+YmP6BOOEGhd1022pQ3dJlo WxSKI61eXqqJnsgBoLHSF4kZ/bayD1DYgAsPS3n+mgbhmoO812rA/gRk5UL/o5V5VHwa XqSg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :dkim-signature; bh=e345+swzPUmQgd41l0m3kNKJ/xmdbW17sX8/bM58R7U=; fh=YXvJzUvHMXFE6b3cOY0yoV9ugY3ujMu7i3tE1KTv94w=; b=e7uqzuH211ppEElGfpT030cEUDKZK04J4UZoo4YCn/2htVjsD5zjwV65aIIsKT1h14 xA5aqm5BtWAEK/LzwyzzA1gqp9hOpc2lvI4TRYsGa+P5VTRaNI7MnwWpFl+N6vl+oQX7 QI2u6DBLg64P1xRRdV7Kvfv8QIxhp2fh+txgsfRb7vJSM+0X2NDq8uhJ+Owj5tteEczq Y59VR7nq633KcbOA1IWyU+irWLw2axHVsFOljA00z+hNiUhRerhKdP4t70y4wBqzvIB8 qxR4sfyZJB3uczs/CNHM6NY6oHj+kBsKhBj6fR0GEw35Q7yvYF+P/fiHNiqftsOKG6/5 g+8A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y9DR9RcL; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54759-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org X-Forwarded-Encrypted: i=1; AJvYcCVXgsuPC6AgnMV+YjL+fYO4qKMiA2Bu0rbF7zoukLl+J8o7FFlcsgcWdQ6cYzO5w4O3wKKGGEN3xxmJNIDrftlgF4caa83oMbRJ8uGl4w== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id kx1-20020a17090b228100b0029640cbf9f0si953565pjb.56.2024.02.06.03.19.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Feb 2024 03:19:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-54759-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=Y9DR9RcL; arc=pass (i=1 spf=pass spfdomain=linaro.org dkim=pass dkdomain=linaro.org dmarc=pass fromdomain=linaro.org); spf=pass (google.com: domain of linux-kernel+bounces-54759-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-54759-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 3E28E2835AE for ; Tue, 6 Feb 2024 11:19:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 833FE12EBDB; Tue, 6 Feb 2024 11:18:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="Y9DR9RcL" Received: from mail-yb1-f172.google.com (mail-yb1-f172.google.com [209.85.219.172]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F4951EA80 for ; Tue, 6 Feb 2024 11:18:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218332; cv=none; b=DnZW4mftaeDaFYEPR5rNu6ErVuwwc3fbbVYMuAafnlKRyZEYrAa9kwv2veLu/rG2cDppRwRCFnUasW+9slbNE683DitwPAHHWWPGUdZluCPXU6ECZSQ/4GMdh2SLhd8PpZWSUmfXH7jh7+erkKHzZKzqpIEznyIipCbd55sT5OE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707218332; c=relaxed/simple; bh=RAUcQj04TyEXEDqfDrWDiMlYnTPZzSWd7J0PrXfQYhs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=q6CNX4fERPl0/GEJ5v5sceI6hgzDeAWYMW0pYtdnduJpQKE0FINYZQ3k5uEbsWQoTi1hpuXEB8ZAtYDYH/xsKbxInaPgRsibyYg6iBGn3NXm8w2jfaDzxQwQ7CsjMCm7oWJ3pdrKeTdqdYF6Vc99wQesUO55pRnxLMpUjhmLHEk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=Y9DR9RcL; arc=none smtp.client-ip=209.85.219.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-yb1-f172.google.com with SMTP id 3f1490d57ef6-dc6d5206e96so5026444276.0 for ; Tue, 06 Feb 2024 03:18:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1707218330; x=1707823130; darn=vger.kernel.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=e345+swzPUmQgd41l0m3kNKJ/xmdbW17sX8/bM58R7U=; b=Y9DR9RcLqQquZMzl8oG+qCFOpkWKgKCZWiikR6jOKzHT0OmKaujpl377FvtPE42WhT Gj2Nb0qHAUy4L/ovHudsCz1YiH4ECaZoQ059ROUZDbUNkA7u4bw4jjieiRoPhpiezaa2 cKEt8jdbQXgkIUpXgOoVnSMci9XxjMC49hwiJdmE5BQNpKemXLkOwdTRxJJZ0b26VjH5 12pXlumv80QUZ3owU4AzbtaUGrJbfACXG0f26o5Wdl/uE6STcYMxVTpJp0S/JKUiK9Dn GiR1iOU5kGEGCbyzqKhPAphO8AJY29h4NSowg/FNXAJ+1IzgzOEOKA8tIJh+XLRwRS9C +ZxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707218330; x=1707823130; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=e345+swzPUmQgd41l0m3kNKJ/xmdbW17sX8/bM58R7U=; b=XO9Vq1V2/IpBtqTpoD8lHdNp5VoQxQM0Fq1puyuoMh/enbxnroa3YAviGAVaV1WX/2 NszKg0faoQaAAratZl3XpdXs9Vb240nHWKrpq0a+Oji+b4ga01mFU3zsnn3liqJcZcIx 1Ebn9oKN3sqDh+5aNkY327mGtkT2Nw1+EKc7/Nx99HLYtOikVY7PjdKCYm2H1nuVxKI5 tIwNQxlhUOohvPoymi1kGVJvwIs5x76qOYJ1dS1kYYJGU48w5N2+iJ37rK+aAzvr5cjj faTUdZL8y37ZX36Cg823s+5YUInP9J0mA9b4asJQ/wpB91v/w1Gw5DKuJbtMgUg628dJ Fipw== X-Gm-Message-State: AOJu0YynLHp6FTTOhFWP3RMPKLSu8S22NlrWtzzE00VabKMbGw9AHf/5 t35oi2zNAeNufQmcKV2mbS46zosvX1V5VOs4AvtyU/DGM4sUFfZ/9RvMnWA8QgfwqvOXhPNlbEk +S8T6RVEPOAKUnzOpQi8MpIObZWE44lTFi75BdA== X-Received: by 2002:a25:840c:0:b0:dc6:e8b3:9ffd with SMTP id u12-20020a25840c000000b00dc6e8b39ffdmr1292874ybk.53.1707218328670; Tue, 06 Feb 2024 03:18:48 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240205191310.1848561-1-colin.i.king@gmail.com> In-Reply-To: <20240205191310.1848561-1-colin.i.king@gmail.com> From: Ulf Hansson Date: Tue, 6 Feb 2024 12:18:12 +0100 Message-ID: Subject: Re: [PATCH] mmc: wbsd: remove redundant assignment to variable id To: Colin Ian King Cc: Pierre Ossman , linux-mmc@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" On Mon, 5 Feb 2024 at 20:13, Colin Ian King wrote: > > The variable id is being initialized with a value that is never > read, it is being re-assigned later on. The initialization is > redundant and can be removed. > > Cleans up clang scan build warning: > drivers/mmc/host/wbsd.c:1287:4: warning: Value stored to 'id' > is never read [deadcode.DeadStores] > > Signed-off-by: Colin Ian King > --- > drivers/mmc/host/wbsd.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/mmc/host/wbsd.c b/drivers/mmc/host/wbsd.c > index 001a468bc149..f0562f712d98 100644 > --- a/drivers/mmc/host/wbsd.c > +++ b/drivers/mmc/host/wbsd.c > @@ -1284,8 +1284,6 @@ static int wbsd_scan(struct wbsd_host *host) > continue; > > for (j = 0; j < ARRAY_SIZE(unlock_codes); j++) { > - id = 0xFFFF; > - > host->config = config_ports[i]; > host->unlock_code = unlock_codes[j]; A few lines down there is check "if (id != 0xFFFF)". Looks like that is a redundant check. Would you mind cleaning up that part too, as a part of the $subject patch? Kind regards Uffe