From patchwork Sat Dec 9 22:01:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Linus Walleij X-Patchwork-Id: 13486112 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="N72p1EDZ" Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EB3B0D9 for ; Sat, 9 Dec 2023 14:01:38 -0800 (PST) Received: by mail-lf1-x12b.google.com with SMTP id 2adb3069b0e04-50bf26b677dso3138829e87.2 for ; Sat, 09 Dec 2023 14:01:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1702159297; x=1702764097; darn=vger.kernel.org; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:from:to:cc:subject:date:message-id:reply-to; bh=Rf6kxtFYggdfbxJYCVZWg+cgkdXOPlRkn+YTuzn4osc=; b=N72p1EDZth6hevcT2+j5/ZHMOgXPnhRlIsWXjmDEppDaZYOpeBCidoV5p3AjnrtiKp 6wKrBaInIj4SqvgmYCC44zMXBVm/9zgfHx5/dsJP9ccvktTyQLlz+oWbeMvBJ5+5KZtr jCY6vLNrbLL4DswcSoGuXo8u8TC+I8YalUrAtgujc4qSnYFl9AweR36RHorNdhc5WKts EkKhBoJ2s8VTEDauciKJ8qq//dYPO6znoktndUWYgP8qfSfNaUD/y+iXxDLdQ/YGCgHf WlXVdwBWA/4F4ewXWLkNnlTax1MjyWptfBFR1hpI/u0uVpXS6t4S5eagoWW7SxpX3wtJ PSqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702159297; x=1702764097; h=cc:to:message-id:content-transfer-encoding:mime-version:subject :date:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Rf6kxtFYggdfbxJYCVZWg+cgkdXOPlRkn+YTuzn4osc=; b=Dz1KTF0wZ098tl1qImT9dlQSBuz2lJwCTuZyI99sqY7ZtHCudVHmsYgbmQ9+XECGVQ Kn1bjTI+FqK07LXpgbH4uJbDiGtFJBIfaCrpGwzmVErpG7rrqSOdnzA1p6sR0W9ScaI7 9ox0JV91BjCAuHJbl+qS/YFsmujkrSF0RzX/FN79wHHE8U9BQu2zYrTVqSPsUz1raYgR 11h/SmBEiHU+d3vZeXmCU1ZU4A47cX7MwPEGUq2gr8Mj5W0h+pH6WKdPTVjoakPwzvkK NDVL3mVWClxbIT+0kqCThTRhAQAGT2jNlXlx38guZabuGicruP0VHAm4H/dUKzOJTCE5 O15g== X-Gm-Message-State: AOJu0Yxp1gru0HZcrF1E8jqsH5L/uN4KYZWHHQE4RbMeWwxwYVAEbaAF mGvvOtwQ8pkiJXT14Gdy5T6x2g== X-Google-Smtp-Source: AGHT+IFBUEVjY+K4P0Zha/3JhCUnzGdXx6Cwpnkna/C2qd7ZWtdFCT0oVacrclwVM5TqPh0T2pmeTQ== X-Received: by 2002:a05:6512:3282:b0:50c:9e1:bf76 with SMTP id p2-20020a056512328200b0050c09e1bf76mr514417lfe.9.1702159297223; Sat, 09 Dec 2023 14:01:37 -0800 (PST) Received: from [127.0.1.1] ([85.235.12.238]) by smtp.gmail.com with ESMTPSA id s16-20020a056512215000b0050be73a1c27sm626098lfr.258.2023.12.09.14.01.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 09 Dec 2023 14:01:36 -0800 (PST) From: Linus Walleij Date: Sat, 09 Dec 2023 23:01:27 +0100 Subject: [PATCH] ASoC: wm1250-ev1: Fix uninitialized ret Precedence: bulk X-Mailing-List: linux-sound@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-Id: <20231209-descriptors-sound-wlf-v1-1-5b885ce43ae1@linaro.org> X-B4-Tracking: v=1; b=H4sIALbjdGUC/3WNywrCMBBFf6XM2pEmfSCu/A/pIk6m7UBJykSrU vrvxoJLl+fCOXeFxCqc4FysoLxIkhgymEMBNLowMIrPDLa0lbFlg54Tqcz3qAlTfASPz6lHbsk xVURtbSG7s3Ivr7177TKPkrLx3m8W811/xdOf4mKwRKq9u7V9Yw3TZZLgNB6jDtBt2/YBUB6db rsAAAA= To: Krzysztof Kozlowski , Alim Akhtar , Jaroslav Kysela , Takashi Iwai , Liam Girdwood , Mark Brown Cc: patches@opensource.cirrus.com, linux-arm-kernel@lists.infradead.org, linux-samsung-soc@vger.kernel.org, linux-sound@vger.kernel.org, kernel test robot , Linus Walleij X-Mailer: b4 0.12.4 The GPIO descriptor conversion patch left an unitialized ret behind by mistake, fix it by getting rid of the variable altogether. Fixes: 10a366f36e2a ("ASoC: wm1250-ev1: Convert to GPIO descriptors") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202312090953.DiUo3mue-lkp@intel.com/ Signed-off-by: Linus Walleij --- sound/soc/codecs/wm1250-ev1.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- base-commit: e0fa2154a7f46ca49105025d118261d34f7dfa7e change-id: 20231205-descriptors-sound-wlf-e6caec3cc642 Best regards, diff --git a/sound/soc/codecs/wm1250-ev1.c b/sound/soc/codecs/wm1250-ev1.c index a2a8b2a4b19b..9fa6df48799b 100644 --- a/sound/soc/codecs/wm1250-ev1.c +++ b/sound/soc/codecs/wm1250-ev1.c @@ -129,7 +129,6 @@ static int wm1250_ev1_pdata(struct i2c_client *i2c) { struct wm1250_ev1_pdata *pdata = dev_get_platdata(&i2c->dev); struct wm1250_priv *wm1250; - int ret; if (!pdata) return 0; @@ -165,7 +164,7 @@ static int wm1250_ev1_pdata(struct i2c_client *i2c) dev_set_drvdata(&i2c->dev, wm1250); - return ret; + return 0; } static int wm1250_ev1_probe(struct i2c_client *i2c)