[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20170822161756.5h6smkjz6kkvl5i7@sirena.org.uk>
Date: Tue, 22 Aug 2017 17:17:56 +0100
From: Mark Brown <broonie@...nel.org>
To: Jeffy Chen <jeffy.chen@...k-chips.com>
Cc: linux-kernel@...r.kernel.org, tiwai@...e.de,
dolinux.peng@...il.com, Jaroslav Kysela <perex@...ex.cz>,
alsa-devel@...a-project.org, Takashi Iwai <tiwai@...e.com>,
Liam Girdwood <lgirdwood@...il.com>
Subject: Re: [PATCH] ASoC: Add a sanity check before using dai driver name
On Tue, Aug 22, 2017 at 10:45:12PM +0800, Jeffy Chen wrote:
> - return dai;
> + if (!dlc->dai_name)
> + return dai;
> + if (!strcmp(dai->name, dlc->dai_name))
> + return dai;
You want (dlc->dai_name && !strcmp(dai->name, dlc->dai_name)) for this
to be equivalent don't you?
> + if (dai->driver->name &&
> + !strcmp(dai->driver->name, dlc->dai_name))
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists