Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edd7ea2d authored by Alan Cox's avatar Alan Cox Committed by Mark Brown
Browse files

ASoC: Intel: Skylake: remove bogus comparison of an array with NULL



dfw_ac->params is an array not a pointer. It will never be NULL. The check
on ac->max appears sufficient.

Signed-off-by: default avatarAlan Cox <alan@linux.intel.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 2303b32f
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1657,7 +1657,6 @@ static int skl_init_algo_data(struct device *dev, struct soc_bytes_ext *be,
		if (!ac->params)
			return -ENOMEM;

		if (dfw_ac->params)
		memcpy(ac->params, dfw_ac->params, ac->max);
	}