Merge "i3c-master-msm-geni: Initialize local variables"

This commit is contained in:
qctecmdr 2023-12-03 16:46:28 -08:00 committed by Gerrit - the friendly Code Review server
commit 01d550bb2a

View File

@ -3313,8 +3313,8 @@ static int geni_i3c_enable_regulator(struct geni_i3c_dev *gi3c,
struct platform_device *pdev, bool enable)
{
int i = 0;
int ret;
struct regulator *reg[MAX_REGULATOR];
int ret = -EINVAL;
struct regulator *reg[MAX_REGULATOR] = { NULL };
const char *regulator_name[20] = {"i3c_rgltr1", "i3c_rgltr2", "i3c_rgltr3",
"i3c_rgltr4", "i3c_rgltr5"};