[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210224091027.8d172c0b7aa4d6d651a3d34e@gmx.com>
Date: Wed, 24 Feb 2021 09:10:27 +0200
From: Lauri Kasanen <cand@....com>
To: Wei Yongjun <weiyongjun1@...wei.com>
Cc: Hulk Robot <hulkci@...wei.com>, Jaroslav Kysela <perex@...ex.cz>,
"Takashi Iwai" <tiwai@...e.com>,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
<alsa-devel@...a-project.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH -next] sound: n64: Fix return value check in
n64audio_probe()
On Wed, 24 Feb 2021 01:38:03 +0000
Wei Yongjun <weiyongjun1@...wei.com> wrote:
> In case of error, the function devm_platform_ioremap_resource()
> returns ERR_PTR() and never returns NULL. The NULL test in the
> return value check should be replaced with IS_ERR().
>
> Fixes: 1448f8acf4cc ("sound: Add n64 driver")
> Reported-by: Hulk Robot <hulkci@...wei.com>
> Signed-off-by: Wei Yongjun <weiyongjun1@...wei.com>
> ---
> sound/mips/snd-n64.c | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
Reviewed-by: Lauri Kasanen <cand@....com>
- Lauri
Powered by blists - more mailing lists