[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAErzpmvnDs-WBRVCn+wdQw2cxiT+h0gdBci5UqPXEvffRtBmMw@mail.gmail.com>
Date: Thu, 24 Aug 2017 11:46:39 +0800
From: Donglin Peng <dolinux.peng@...il.com>
To: Jeffy Chen <jeffy.chen@...k-chips.com>
Cc: linux-kernel@...r.kernel.org, Mark Brown <broonie@...nel.org>,
tiwai@...e.de, Jaroslav Kysela <perex@...ex.cz>,
alsa-devel@...a-project.org, Takashi Iwai <tiwai@...e.com>,
Liam Girdwood <lgirdwood@...il.com>
Subject: Re: [PATCH v2] ASoC: Add a sanity check before using dai driver name
On Thu, Aug 24, 2017 at 11:34 AM, Jeffy Chen <jeffy.chen@...k-chips.com> wrote:
> list_for_each_entry(dai, &component->dai_list, list) {
> if (dlc->dai_name && strcmp(dai->name, dlc->dai_name)
> - && strcmp(dai->driver->name, dlc->dai_name))
> + && (!dai->driver->name
> + || !strcmp(dai->driver->name, dlc->dai_name))
> continue;
If the dai->driver->name is match with the dlc->dai_name, does it need
to continue?
>
> return dai;
Powered by blists - more mailing lists