ASoC: madera: Fix uninitialised variable usage
authorStuart Henderson <stuarth@opensource.cirrus.com>
Fri, 1 Sep 2017 09:31:07 +0000 (10:31 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:22:27 +0000 (20:22 +0300)
Change-Id: Ic75294a65b998d712b3a9e7221518756833fb78d
Signed-off-by: Stuart Henderson <stuarth@opensource.cirrus.com>
sound/soc/codecs/madera.c

index 5c25474932df09f354eea90be01a18002e0238f5..ffd5cb55a29e5e3e919cff494818b7f9f8754671 100644 (file)
@@ -336,7 +336,7 @@ static int madera_get_variable_u32_array(struct madera_priv *priv,
        } else if (n < 0) {
                dev_warn(madera->dev, "%s malformed (%d)\n",
                         propname, n);
-               return ret;
+               return n;
        } else if ((n % multiple) != 0) {
                dev_warn(madera->dev, "%s not a multiple of %d entries\n",
                         propname, multiple);