From nobody Tue Feb 10 06:25:44 2026 Received: from mail-ed1-f47.google.com (mail-ed1-f47.google.com [209.85.208.47]) (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 5B89C44D02C for ; Thu, 22 Jan 2026 15:43:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.47 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769096637; cv=none; b=nnVkYvIewfUPcAyJvIpz4uyN7bs87qnU6moEC2jKk/5rUO6jo+7Ag85Xghf2GsOMd1ubJ+sUtZ5/jtAUef+zidioz1/Z21W5qmCjKAbMcTNdQxiTgZ3Lt1qVK4Db4HWMHUDCJH4ay/vSlHu50n1cJJAIYRZt0DYfuqRoE1+zXQo= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769096637; c=relaxed/simple; bh=wZmkgKDnx+gLs+hVAjzPq8Ts28TSMZhJDdmeEe4ghKo=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Hev945+0A3vVQ450BeTaNnlRX+mxBm1hfYz8VxVN86Dhz5/9FzzGzoLA9s1ILfzGFM9xKONDaFjCJ4+1oAf66VsWOE65iOVH8pxnYlkHrDS+NJKjunymeQZ9jRuH5daFnQprCG9tm/WEYvugQkA9LNNjd3iciDeOcz0nO8kr/84= 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=UbQTwfBd; arc=none smtp.client-ip=209.85.208.47 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="UbQTwfBd" Received: by mail-ed1-f47.google.com with SMTP id 4fb4d7f45d1cf-64b92abe63aso2315402a12.0 for ; Thu, 22 Jan 2026 07:43:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1769096624; x=1769701424; 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=hFHwW2bdepIoOkuLol6lBUlgXwxd7Z9UOUy1vWjRyW8=; b=UbQTwfBdZb9doROzA8I17uUkU+CXostUYYsbS9z50MVXeJYl8CsD43wk04GlqAyoSh 9MpxhLSxXaEiRkRLKh2zV2nuQOOBFYUhmBg02hhRcLJD4XW9gO0pRLeUC3S/dk1stWtA WG0oIOuR+yNPGRTKn0bEGKpzzlEfEeHHuqpnzH3Lpg0MRx+ySE542AFXSr22Th5wDzoo upTzLC2rpTaZamVS694rIFqJiW0OwqbOjaKjnh/IT4nQqvRwz0LEvcmiaXbGafphHmI0 d7D18Jxhlju6VgrD3PXx4agWXHoZjNPiO+L6vsVn0iVBuBxeHZbBNO2olNhE38qg0lt0 l9XA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1769096624; x=1769701424; 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=hFHwW2bdepIoOkuLol6lBUlgXwxd7Z9UOUy1vWjRyW8=; b=F0Dt4tbEd8uZhrx43uWYp9ohZASGN2wrWQbd83hpI7nXE5WPMycjpu4za4xYCbXOyH qH6JMKPYHGQ3mxDAJaJc7wANi05Q674M6cJZK097Bn7DQXLhuwoLkIA4SlLyrmnIx14N yO6pOWzbKyJBp1DiSQYcJ8WbX5hRDHr19RwB4l6yVw8nCtlRlofbSHQoAhJVdKYNwDvL 9XOUhe4P0aY0vHlzF6CoXa7zoIs+xhetXumsihXqYD0K27lBzdhCn7vF391tIxgd9BVt shnheNSVafkgX4gr/SExLfrKRgrylMMhcz3vmZfK2WpO3f1yVbHqqTw+ERu94k35+2If 3mPQ== X-Forwarded-Encrypted: i=1; AJvYcCVNrMJ0L/DU9yggKvtc7vUqCdy71QxzDEUsLGcrNBRGX3bkgOGXssEcJTLLb5GhjifTP/H2Narkj5VKENw=@vger.kernel.org X-Gm-Message-State: AOJu0YwszzM9224f2lnDkNcBYTAogv0o0Y8E5Y4QKixeU3RNVA1gRVkP H5aofukPISththBKdZ1vlHEQjnnSwkoZl9oCDk9gFm7MnBUVKM4UCY3uz0VMmzYQklQ= X-Gm-Gg: AZuq6aKNde/bbTE9mxjBNb67kRSZU6SArscBIRciV1aF9P9NE9pM9OjZNU9cYOyn6pJ RXdSOmV0iE5kpWlZB9hj21d6X0XNk6eJbKqeJ75zJlPXHb4zbWltwqVXPWBWT3owssnjjlkjV0R o7407osMoTMkj75OY0iY2X/LLNqv+uqXBj0Ge0rhnvRZ954MNY4sBQkPvk5WlBoG/iO97LqnoCC 3RvdQl7+tyx7K/ClHJ91ccOrmf8h/v80rfuKKy1qvnWFBcMatuMpeuSqhWc5bJOCf+Jn0w6ahrX HP7gMNO/KoMKakeb497I466F8Tjo71UCub9he2SCXJpcKRssdRQ4LCqhcirwAhY6SJcsGpFO+rg SJCWgrtc/qLigPu7UBX5IWFHqqdZYemktm3FkSGerTwcIRPcu5bNpa18uHlmtqhwLwmxwq5r9rl uZbblYwEq/GaAf6UfHR0HuicxUP4CrdOPtvHo5A8H+XmNCs9laBL3YYYY6TFuhZenfqc991BxZw MkBYg== X-Received: by 2002:a05:6402:1d50:b0:64b:3225:b771 with SMTP id 4fb4d7f45d1cf-6584874e664mr45457a12.6.1769096624145; Thu, 22 Jan 2026 07:43:44 -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-654535c49f4sm16334363a12.31.2026.01.22.07.43.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jan 2026 07:43:43 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Thu, 22 Jan 2026 15:43:38 +0000 Subject: [PATCH v7 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: <20260122-s2mpg1x-regulators-v7-11-3b1f9831fffd@linaro.org> References: <20260122-s2mpg1x-regulators-v7-0-3b1f9831fffd@linaro.org> In-Reply-To: <20260122-s2mpg1x-regulators-v7-0-3b1f9831fffd@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.457.g6b5491de43-goog