From nobody Mon Feb 9 19:08:24 2026 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 99A6632BF49 for ; Mon, 5 Jan 2026 09:01:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.218.43 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767603713; cv=none; b=Lc3jFaqQM+GqQqKJyFs6jp+KGlOdgtQt8LZA+wptmg1+IPTiP3H7uzl5V6id3hnnIkDZopNrl8/XnV62wCp/Gcjun0Fset4gd4Yir/HbeovJSda9Xn5ExHp/hCxYpNwSvlToqJsqkmsx99RhYBssR7yk4krGIg4jQ3DaK0kGYjQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1767603713; c=relaxed/simple; bh=6XxroTSX6ceg285T/QjRgJPmV5ju4e9igmyPsFQygJ0=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=Y2t1d7lUztcGeg+he1jGt2TZjD4C+f0tztUlgBlasd+FpLUjYGNVZqUo1PaYQCqvtFhN/C81756kU5Fg2WGZrtmPmpOEKbGZl+B9a6fFBqBdcV1Wi5ncnCTpsFj+HOd+9PKglIXQdcwLtLMAi7wzhXo6v02emWjhbJ8mISl/OIo= 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=ScigQ+9p; arc=none smtp.client-ip=209.85.218.43 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="ScigQ+9p" Received: by mail-ej1-f43.google.com with SMTP id a640c23a62f3a-b83122f9d78so1190875766b.0 for ; Mon, 05 Jan 2026 01:01:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1767603706; x=1768208506; 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=ScigQ+9pMifAw9W8DMfDGBzMdlpwmoLb1+sNTbTkpCOIDVI2GE/S003niyR/BJtQSv 6p/MhFEhIcR2GLTGwYXtK/9Aalc/nCoTXaEpc4mQtASS1o4gq8ns4wRrmKtJKmEgdPX0 A6FlWtoqhgv2nuxARWh1yWjAiAHeyyydLA864oLP/GvZCMQwCA9QQGn89enbovn4vO8b cCxBIRzZB0e+b7L9a0P5FUeE7j45CMq2/gpVM7Vau6ytS2aynJPyhfhAYlqyHSKlvbRP +NTZozWVf8P1Y2ZReRRr/vJPohxI/g1VL/uoKSJCWITKgx5h/gry3w7xchdPUsgvSCLC WnHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1767603706; x=1768208506; 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=YXRbvjInqkxg+swKPrtpU4Ua5D/5KCYkdpRIe0AvFLo8mXyfyvqnIg2dO1mjZdBirM 1YpqGuz6Ef4VpGJSvMS8jq6GlJMOmekKHgrO1ROz13adjImOGWEczcO7gX1EK3TGf6fa pjcGDCtfjrMZH9RAfoAr7jBBe2XrHgWufV6CsNOqRHLIG7foN+smrNYmAj/jBBT/3XZk YyAmIpUI+JhD2wGJwRRccrHbV0A3uAYki9mglpgXsGjXM/4nsfqZxroQX0xQlEb4L1Kb uHNqegEGN1jKwfIhgL90GgNcxoetzjZ62WRNKClHecp+lVxMRJPo64CIVj6km6vYh7iC QinA== X-Forwarded-Encrypted: i=1; AJvYcCVMcmnUHmtBQCH4Z0CsMhFdnz8EbQ6I0b90LiQELcBw9acuJwKm9vouq2V6oYTraNCaY87ogZ1DXQVQcn4=@vger.kernel.org X-Gm-Message-State: AOJu0Yx8Nk3B3vudp4WMGu49tL5KHwtWcLUkJIWHGDJ5Cgy112Wpk6zD NI3hflMslWP7F1pRCVKYuijaHYKDAAruPbW6XhO1izAqIZnnv+7S61HxKICnEKlOPTY= X-Gm-Gg: AY/fxX5AN5LMMy6K61ECs6bchYlo0t6AX0YXFOkx9JCaElOigKZ2jHtWw/rgh7nyR0Y 8fbVIi3lg89BzNdGsJqOA6w+xfej2MWN/XyJLfrQqjwgCcGQXRE4vguK0QJ9ar0U/3C/hVniUD3 iwmiTUyNyKuUP+73IOmnAJ6UnzyHIrjpHMjUqijb0rHgb7bZQvKFYxr9BzbZS21b+KOzO6mQsDc /mgbi0Q2/9D01zATqPwI1il6e1LWwrgdnBtjY0Uf/gucWC9S1ZpUCjnwAe7wFv8tRRnu4cUy+m0 36q+UdTAnyaw2Lw+PtCW2uCh5vqK45rOmR941K8XP6E+OgpieenUKwoqTsVEsTtNd3kBb7Z3GsS COtzZ/CnMIa931IuvXkyjd/RBZj0DBzmm0tJhbX8slQ3eBv5y5B47wmu2pV1M4xJ0B/BsSHfAd7 pRXbuiJVYQq4sdX10Jcz4wwFXf5qSgH5weFHeaiO2R1Fk6KqBVwmyCzWF9jLO1/wX1m31+87IYP PyERw== X-Google-Smtp-Source: AGHT+IGqO2/A6qUft2Ty36ZkoKJQ250NpUeCgwtCUExj2hkku7DKz2zpfH5WwcKxMWgUdFnRgc8Tpw== X-Received: by 2002:a17:906:730d:b0:b73:b05c:38fd with SMTP id a640c23a62f3a-b8037183211mr5065467166b.50.1767603706149; Mon, 05 Jan 2026 01:01:46 -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 a640c23a62f3a-b8037f0ecb9sm5384010466b.56.2026.01.05.01.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jan 2026 01:01:45 -0800 (PST) From: =?utf-8?q?Andr=C3=A9_Draszik?= Date: Mon, 05 Jan 2026 09:01:47 +0000 Subject: [PATCH v6 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: <20260105-s2mpg1x-regulators-v6-11-80f4b6d1bf9d@linaro.org> References: <20260105-s2mpg1x-regulators-v6-0-80f4b6d1bf9d@linaro.org> In-Reply-To: <20260105-s2mpg1x-regulators-v6-0-80f4b6d1bf9d@linaro.org> To: Tudor Ambarus , Rob Herring , Conor Dooley , Krzysztof Kozlowski , Liam Girdwood , Mark Brown , Lee Jones , Bartosz Golaszewski , Krzysztof Kozlowski , Linus Walleij , Bartosz Golaszewski , Linus Walleij 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