From nobody Tue Feb 10 15:45:48 2026 Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 9ABBD33031C for ; Sat, 27 Dec 2025 12:24:36 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.41 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766838279; cv=none; b=UqcEyLBadi1cFT1SnUeXcno7RvhUUrZV2tcduzdAqm141Pv5+sdDuPCzKVhkrkwASagATMUQT+8CpkgEJDOf6Zkp6Yu9ZXJd5LYsAo/Cuu4bGe+bJFP64+dST89nq3MHS/fS6zG1QuIy7bFUQUI8qPdCpgxmjh7XUgnWxpnUxuc= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1766838279; c=relaxed/simple; bh=6XxroTSX6ceg285T/QjRgJPmV5ju4e9igmyPsFQygJ0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=DVA39BKNCuZm8IPx4Dd3q+yCBWg8ow4rtXLQLRAGMkJbDPp5Nd2ydoSqaOzDtKzS7e6S55ySlYnOf8zS0xVN90IQvb1tQr4WOGblB5fPQL/py7RpAphY880dsS30uqkZ0bP4hfn+a5R8BFGQVxvI063wvRbqSVJ8kGSmivc83jI= 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=WKW5uqxf; arc=none smtp.client-ip=209.85.208.41 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="WKW5uqxf" Received: by mail-ed1-f41.google.com with SMTP id 4fb4d7f45d1cf-64b5ed53d0aso11233007a12.3 for ; Sat, 27 Dec 2025 04:24:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1766838274; x=1767443074; darn=vger.kernel.org; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:from:to:cc:subject:date:message-id :reply-to; bh=10d9MioQ6PzKJr2vkHmOG0REtU2UfuxyvJCr4xa57iE=; b=WKW5uqxfAOHdjS47fUJahRY6oBRnl6oCH6WDe2Joob5HexBYd8+jzLtVn0dIyVS/LE 3xjeoeibbEWe4enf8XFK4/bBQuZjL6FRLFkjKlQgXpEH0SkEM/KGzzQsynRi4odLCtxX fStYkmCL9fsPGfh2apnelE073KVs1pL0UggD+/7gsTj0oeKcHHX0w4bCfIama1cR1hsi jo8JbamkGgILyOlW3lWs8jOzu0IWHxWVVoS03DE91W4uF0s08S8t+0fOp2I81R/tPKLx iS7MFhQVZmCRIXbjEy4RQyoVjppKXeZOULYJhdWik5DIX2hErfAS3ThqR4DGxTQ1B0Bj CbHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1766838274; x=1767443074; h=cc:to:in-reply-to:references:message-id:content-transfer-encoding :mime-version:subject:date:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to; bh=10d9MioQ6PzKJr2vkHmOG0REtU2UfuxyvJCr4xa57iE=; b=aYGkbdi9CMkIyr8dx5vJ+MWRuJWp0yBmcklcJM2oxLSLSAFEyME3ecwKsjMX9JA0Cf i9VjXzqvquo/y3juBVPSOv61wLzNngrN8ojphouq++g/8s8uV6S33xvTPO/8UcACDnyE Ad3PIHY4Fp1JKMyqd37qe3z+EFwK6itFpU5u+U/vx82Xmr8ArgFS4IEIx+SmLw9m99vp 82hge7axJfhuQbcLIzUv7lSRfiV23SdX3MNizFT4LDqWhGPIJdNFri0tQOFOsra4Reir n/KF+j1FZlcpR4+IKt1l7BcA/Go4FJT181fJBjX8cSSEOuJqlBAr74AT0Y0v8eRuLaKS 7Xcw== X-Forwarded-Encrypted: i=1; AJvYcCV9pbJb+Q85bndac9WHRA3uh7J3RwFAf+rgimYXm6uVN/aWiVsd6EiLtnVUqPS69VDHqmNgyViyp2z/ZmQ=@vger.kernel.org X-Gm-Message-State: AOJu0YysLntCJx4l3GO3U0DyoxKKQjnFvXEjBsrS8JcIXibEuUeaJh4I qEvhR2jG95iIo1TkjQaIgJJUKIO9wi+zklYg63I8AN8QwlG9k0b+gORjQZRN18qwHFQ= X-Gm-Gg: AY/fxX4SwdyQAPRoPzC9kwMAleK2/gAq7SFmKMaOgEJ/yxnTEz+ORDzhq6U+igk1tdo W59Obq25hWZ3tK+NBi/Ylm9gQsWCj1BocPraMJTKP4mmfgikOy+m41yDM65izzdRfo8GeJEedgJ z18PVgj7mDyqBY0Liefa46l54D5O3bOdd49q5d7rLa9RBP6mj+DxQ94rz1nTMl3ZOUCCfA3IVDu /+zMBwLOQb3qsbh8WU8uohKg5oINydYlF8cqefWXg+KS9PJdU7BBwu9KQuYsUq6uJ1jybeK+swo LjbX84bXtoIpy7Jc3Y4WVWrjsFOJBD8ZfO2/eoFWc9SSqimZzE9YQaG71IZp35lzQgbgyptZsSo +GpMdDe8AmXIuDJbmY8uPQtTprTRgZdlSZve7Uw8HTKer7RBn5mBWWEWcv05ST9rxbrhRLGj8iT ST3sBEksCGHuVjNcvxxjNU2oNQ91xCgISclTzydIL8y+HLsMyHL/tZGU7ph2HdQLou9YAixSVok vAlAw== X-Google-Smtp-Source: AGHT+IG6Z9bYMcuGRg69WSp8yaR92k8YtvKMhYw/xt3cg0I4I04maY0SK1m8WoeJjsZm7hG2dL35Jg== X-Received: by 2002:a05:6402:27d3:b0:64c:fc09:c972 with SMTP id 4fb4d7f45d1cf-64cfc09cb6cmr23518296a12.17.1766838273894; Sat, 27 Dec 2025 04:24:33 -0800 (PST) Received: from puffmais2.c.googlers.com (244.175.141.34.bc.googleusercontent.com. [34.141.175.244]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-64b916adc61sm25932659a12.31.2025.12.27.04.24.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 Dec 2025 04:24:33 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Sat, 27 Dec 2025 12:24:33 +0000 Subject: [PATCH v5 11/21] regulator: s2mps11: drop two needless variable initialisations Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20251227-s2mpg1x-regulators-v5-11-0c04b360b4c9@linaro.org> References: <20251227-s2mpg1x-regulators-v5-0-0c04b360b4c9@linaro.org> In-Reply-To: <20251227-s2mpg1x-regulators-v5-0-0c04b360b4c9@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski Cc: Peter Griffin , Will McVicker , Juan Yescas , kernel-team@android.com, linux-kernel@vger.kernel.org, linux-samsung-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-gpio@vger.kernel.org, =?utf-8?q?Andr=C3=A9_Draszik?= , Krzysztof Kozlowski X-Mailer: b4 0.14.2 The initialisations being removed are needless, as both variables are being assigned values unconditionally further down. Additionally, doing this eager init here might lead to preventing the compiler from issuing a warning if a future code change actually forgets to assign a useful value in some code path. Reviewed-by: Krzysztof Kozlowski Signed-off-by: Andr=C3=A9 Draszik --- drivers/regulator/s2mps11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/s2mps11.c b/drivers/regulator/s2mps11.c index 04ae9c6150bd5ae9dba47b9b3cfcfb62e4698b6d..1f51fbc6c7b6e158f9707c04d9f= 030b9eee5e842 100644 --- a/drivers/regulator/s2mps11.c +++ b/drivers/regulator/s2mps11.c @@ -1207,8 +1207,8 @@ static int s2mps11_pmic_probe(struct platform_device = *pdev) struct sec_pmic_dev *iodev =3D dev_get_drvdata(pdev->dev.parent); struct regulator_config config =3D { }; struct s2mps11_info *s2mps11; - unsigned int rdev_num =3D 0; - int i, ret =3D 0; + unsigned int rdev_num; + int i, ret; const struct regulator_desc *regulators; =20 s2mps11 =3D devm_kzalloc(&pdev->dev, sizeof(struct s2mps11_info), --=20 2.52.0.351.gbe84eed79e-goog