From nobody Fri Dec 19 20:52:38 2025 Received: from mail-ed1-f42.google.com (mail-ed1-f42.google.com [209.85.208.42]) (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 D76F533858B for ; Mon, 10 Nov 2025 19:29:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.42 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762802952; cv=none; b=cRuvAOmTvME1vpAui/1xXbSHrd8qUzdVvwKJs5+57RG8Iz0QiIEfYW3KtLvRNhU2cc2n3Hwt6W+VvidB7xr32m4MMiKN6ayA56HaHawepcofx7I/uxIHXQnMt3qKHoY41vnX3gk4MQCAdVBD++4nAUJzr20X2UEEc/Se+vUJwjw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1762802952; c=relaxed/simple; bh=LFqwaRXkPRKZ74Dqqp+A0vwR8NwubHOzJRAJeqzjYvM=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Ty6LEH1JCR88O1T3S0Kecv1Hn3oxjgRS2noEDMTjaZbavpMhGWxgj3mxPT8v3Qq9n0odQM+HV52lhg10yuG/ug5YWsTRBxpSz25AujNNCTfdkxXybP93Po2Bh1ecZ6w65Ct1xmsIgMXZN9RsWEEjO60Gq4wli5zUC/Ac/UfkXOE= 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=jiR8GVoX; arc=none smtp.client-ip=209.85.208.42 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="jiR8GVoX" Received: by mail-ed1-f42.google.com with SMTP id 4fb4d7f45d1cf-64162c04f90so4172902a12.0 for ; Mon, 10 Nov 2025 11:29:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1762802945; x=1763407745; 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=5EBs/gWqE2YKHs84UApaIc3+cFTmlomp04y82/W90v8=; b=jiR8GVoXbgkuh/KishRQJfNZ57afnpugy778QxGm6RMfpiczGknpEvpHsT1hzpnve/ FhHZs+MUVlCaGcYqkguvwTqLupayTOrL/Swh5t+pMipT2c3mhjruRK12ToJhK/pUvDo7 6vwlrv1dxmhIjGnjDBDBKTSyKX8LzJv6ZTDVpM7LAFB/+8BKTwoVzY69ShjfiQsDrero s4D8KFclLPaJlffZJi2Qli0k7GniGMoGRX7n5NBl1jvGZC487zf2UPRqTgv1e4LacTG9 2SX/l8gG41G95ynb2ZhZmL9yZIVb/pg8LL1axNxQom8li+8MlnTjD0flbUgvJYYqcgvE oIfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1762802945; x=1763407745; 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=5EBs/gWqE2YKHs84UApaIc3+cFTmlomp04y82/W90v8=; b=uK4LfB/oEcositZ/IMEzYNPOZG7388IIBo4xPoYhtR7aOPXgBjwUC1aETJQypbYa+2 mTMYHEoYTZ3P5FBP5+aaJBuu/by1AkCv72lBlhX8eVmKghdqEDXIaIuhyUnOH+UT+6kx m1T9/nUJE8bj5eMPn+eBB6m5RADnmpjoHmlfCbCWKEzsP097eyZFyYgat0lJMnrU1lr6 1xuWdhiXyBVOlHY+zBUrzGbYYSYE9g8qjPzCvVtxqWl3AmY1GKog/OSSlwL60bjv0WL9 KtZB40MaBzmo1fzUcyhMddmxkFtfl+FW2dcAg+rIzmv2CX3UcvozC/PxPyEK+nlzi09U 0ahg== X-Forwarded-Encrypted: i=1; AJvYcCVmEdaSD0gXipoV0Ic/5fmjb7DNIGEjhcK7g3UOxc3FfmxVUifUorcU/sFIjHhOj5pMYIv0YPygvRipljo=@vger.kernel.org X-Gm-Message-State: AOJu0YzDIrod7fENCR3TqEiOjrL9XnXaqALjrTe+uamxDm+L//aeWSxp o3iEgnXeBI6VyclczF+Nu3AH5wFcqzcyFxtA/bfMFhOE0e09RYs4YIDVEqT0MREDKEM= X-Gm-Gg: ASbGnctBntrXSo261zsvjUKlfW5KK6g5XbsmiONQEdbOWAPA24EnvANspoSMdqC0kDR gYdktaRAJ2veyYoLcOjLdCFDuNqqEMrtaDf6NG7SLBSFp6pCwnYYk1NrEE6M+wQidRDwQk5CkBd 317msySJWPW/E3iongOj/6bFfDozKvMqA3UNgeFUXu755keBdVeEZxc4fOeGwKggTENAqzfj4CG eGvh2A33ymm9WC2V+hmmusZ6BQT/+5hAk+slF6o+mDOhjHcIdOZTddB++KCyZzBLPhf215GOsba lD+KJFrJZ1sHEZkSQAUE55qm+D3Y3ECOlE9J86fHcf5TE5Dsjw3VXxOmbY/nkQHQEMHLwYJxJ6a 8+O184RggbJcr04tZXA//w61vx1GtioRpJIzGiI5wcPFKQyGs8hGzh1WTcE2PaK1c93nCEKcfh3 Y+4WZUzLNSuLA/8juwnANH4mLMfbH/bxaP9LKogKZLuDe0WB7zfJN6krEQJlX1cWDakx4NO4Q= X-Google-Smtp-Source: AGHT+IEw2F9SIUsYVJ6/B6ilFIzlh+rE7+nJUNc1mZL2I5c7Ls8Ayt61iA0IZHhJvuKlY8hxgKAypQ== X-Received: by 2002:a17:907:3ccb:b0:b72:d43a:4fab with SMTP id a640c23a62f3a-b72e05e5a05mr774948566b.43.1762802945073; Mon, 10 Nov 2025 11:29:05 -0800 (PST) Received: from puffmais2.c.googlers.com (254.48.34.34.bc.googleusercontent.com. [34.34.48.254]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-b72bf97d16esm1168178166b.35.2025.11.10.11.29.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 10 Nov 2025 11:29:04 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 10 Nov 2025 19:28:54 +0000 Subject: [PATCH v4 11/20] 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: <20251110-s2mpg1x-regulators-v4-11-94c9e726d4ba@linaro.org> References: <20251110-s2mpg1x-regulators-v4-0-94c9e726d4ba@linaro.org> In-Reply-To: <20251110-s2mpg1x-regulators-v4-0-94c9e726d4ba@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Linus Walleij , Bartosz Golaszewski , Krzysztof Kozlowski Cc: Peter Griffin , Will McVicker , 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.51.2.1041.gc1ab5b90ca-goog