Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp382796pxb; Wed, 24 Feb 2021 05:00:01 -0800 (PST) X-Google-Smtp-Source: ABdhPJyvbrh+rK1Xh+8Ge9euXvTilMbnzePOZzzmY1B21szgZNxBxE9zw9mvM3UR0ODopL56uMAx X-Received: by 2002:a05:6402:22f7:: with SMTP id dn23mr17370357edb.297.1614171601519; Wed, 24 Feb 2021 05:00:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614171601; cv=none; d=google.com; s=arc-20160816; b=VE1/qE+Dgd0reocFN60Y4+4hQtjTIB4SL7X6U5gOYTux+lk93DDceALJeemFLCppLa m20t4FzM8ZO0NpNBQHxa956MYoFRjTj0jT24DXMPh05zFAahk5eUDa3bjdU+p84+9LYf /6YH7ZPQF4/SGzykVQoU3yhVIC5XuS4lqrOl8CuhvyLnLP3DJPjOc5/UNc51EYFUhK21 IZDFi+HqRzzpDJdlU1EWME9+hnWofbwNVvYAYJ25fEd2beCfA2B0YnulifxqlMcLDYSg QxHTEsIo19dY8U4v/ftQa7HUfMZSv+mVVZQa6Ayh8TgpGmMWFyJTUMTTikXqYBGc5+Fa hn6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=yuj2VX9rC1kWabQXpeLf7WPZpjvLCCxMnAjg+Sju6I8=; b=BZBrfDTW4olW3fL3BN0fI047UTJihjAJVGa9kfDarhDS3Ht1p26SaZnP9X9F3XF9xD 5M0X6K8J9gJWqPSWOq93e/bFSBnU2vsUJ1zxxdJbZ6Cw20nSfzS4EvSTsaSEQtgxkJPR QOKJjOY0ngF25darqgJXFVKEk3MqApTmw2hbJw2zFVmFAvZeFdXdQReN3xeJw4ByFVQa KxAVBNe9KhWS2Zy9Gwj1itCT5lxJQFnSUZTf4riHLbNYAuLUS9BzGAp38VoKgVxVHcIG 4H+FNtxZgvGmaO/PLvDV0tuCjSZfA5vamgNl+iB2y1ivWB/vFUy5223PaIOPM7Rdnu+Q LVig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QZzTW3UN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m19si1067512edr.329.2021.02.24.04.59.17; Wed, 24 Feb 2021 05:00:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QZzTW3UN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=gmx.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229954AbhBXHMM (ORCPT + 99 others); Wed, 24 Feb 2021 02:12:12 -0500 Received: from mout.gmx.net ([212.227.17.21]:40913 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230019AbhBXHLI (ORCPT ); Wed, 24 Feb 2021 02:11:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1614150524; bh=JBUYayNy3evHFwEU8b+lYJeGEoEUDi/DNq0J8g+SPTM=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject:In-Reply-To:References; b=QZzTW3UNngrZnLn4yZutnsVTjjnrvfS8H/Lzl8DsGC3af1Y12hCQASjhsNzyk7xgS Anwy3KisJuAbTkjyv28cvjBoAd+VU5L3eaoaMq5IsuP/9ZLRJA+KdFqhNZjfAR6abM hnGZw3RmFeG4UcNCmeBqYJ4Z53IbSoIaxbkd/tOE= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from Valinor ([213.216.209.188]) by mail.gmx.net (mrgmx105 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MOzSu-1lT1DL3Vvg-00PPyQ; Wed, 24 Feb 2021 08:08:44 +0100 Date: Wed, 24 Feb 2021 09:10:27 +0200 From: Lauri Kasanen To: Wei Yongjun Cc: Hulk Robot , Jaroslav Kysela , "Takashi Iwai" , Thomas Bogendoerfer , , Subject: Re: [PATCH -next] sound: n64: Fix return value check in n64audio_probe() Message-Id: <20210224091027.8d172c0b7aa4d6d651a3d34e@gmx.com> In-Reply-To: <20210224013803.2146953-1-weiyongjun1@huawei.com> References: <20210224013803.2146953-1-weiyongjun1@huawei.com> X-Mailer: Sylpheed 3.5.0 (GTK+ 2.18.6; x86_64-unknown-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:w274xjZp7tauHIHUJ0KH48Knh/UIezK9ZJRHbL1UhsWlkDbMYnc m5LxWvYoIQVxD7tt/hQG1T2RMSUiltGCcDsgWmSJBhOCd0LlMFWbwMh4KTxlD9YzpLRdcsw 63UJYw14WM9jrH1v2N7paD644KZ9jfmRnPHOAlmnZM9oWth2wlellsd5Yum6LKW9No3I7t3 PmciFgLpu8J0yMHmm0zMg== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Q/4/yVZPhN8=:Zifqb/WYYtNIwpWcDiD4vz ovz3Q+qneELNLKYHgnkcIJzlnspUZuN/iIQn3OYtD2OSoymtw0v9RQvUgi0a+3ntweQAC/x8F pzjQ65Pz0eEkCgSj72TtvF/plWVgdO+q0/jqkogChVKlTawPOXepVqJsLGZgUZsW7e5JoymXg e9cyq6iKsyd9iN6LD6KvSxhiblv4HWmChz7SyfT3rIZgRV8RrZTsRawWNrUUP1x8NDA3WXoSK 99pNA1q9qIzM2poNj3snXa1XV6Y+c0G7sJp2UYZ5z/Y/RaytjhaBepdW99CNymVl66q5tiW4N gbcrTB7MloJrXhmH688atMbyvb1P4h1KlbYlr6f2bkMTcDMJ9MaVZ4snFd/dasdEWC/hpFR89 PJj271hPyyfq35GZOrNlyVodU2OERlA/gHYqRPahqnAlCc6T5TzTqx/WnHuXomYU1ZSoxECOB 0uCK7t9Gc30mxoY+fliY9CCjIJqkVwldAD6cX0iCQTQB4BxcACcRpHMPdcyjU9pXegvKdKekp iJIbddMkTVHokHNCxuT8YV6b2HecfCL63BJE3s1HGqo2MMHE6YhZW+Qx1MzdC5rw1S1a1kIk8 +dC9GlOFeUy5rTz0hwu3q7V+mr8kaNlnobNtMLTr6cOMrOaV+h7Ov9taDMs+m59v8KBtY9V4s lpkgcirPNNllzF6NQLxxjnZPEjsfdPPzHoLn1mBjZfCj8dHfVObwZWpsZvQ9QtbuHlSjNBJbu pTxrmTGL3s5I6FYL2OfvEANL6Mqyq9AsVkQBIWvaLpLkUbk3ZEF+AOHUn99GENYOfq3JG3Kao ccPIYDCxxECYyVOJKrqI7dymWxvW4zAJVQ024d2G1qhS+NWWM2ng5cmeWnafV2IMs/BX53tFk bxQg3OJy3lZK112kPkcQ== Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 24 Feb 2021 01:38:03 +0000 Wei Yongjun 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 > Signed-off-by: Wei Yongjun > --- > sound/mips/snd-n64.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) Reviewed-by: Lauri Kasanen - Lauri