Content-Type: multipart/mixed; boundary="===============5817811358602778621==" MIME-Version: 1.0 From: Manivannan Sadhasivam To: kbuild-all@lists.01.org Subject: Re: drivers/mtd/parsers/qcomsmempart.c:109 parse_qcomsmem_part() warn: passing zero to 'PTR_ERR' Date: Wed, 03 Mar 2021 21:57:22 +0530 Message-ID: <20210303162722.GB4319@thinkpad> In-Reply-To: <20210303094840.0e30392c@xps13> List-Id: --===============5817811358602778621== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable On Wed, Mar 03, 2021 at 09:48:40AM +0100, Miquel Raynal wrote: > Hello, > = [...] > > PTR_ERR(NULL) is success. But let's just fix the IS_ERR_OR_NULL() check > > to IS_ERR() so we don't have to wonder if returning success is > > intentional. > = > Thanks for the report, I've just sent the fix. > = Thanks for that! > @Manni, I thought you would be added in Cc automatically as you're the > author of the fixed commit, but I was wrong, sorry for the mistake. > = np. Thanks, Mani > Thanks, > Miqu=C3=A8l --===============5817811358602778621==--