Content-Type: multipart/mixed; boundary="===============2836212031125638142==" MIME-Version: 1.0 From: Vignesh Raghavendra To: kbuild-all@lists.01.org Subject: Re: [PATCH] mtd: spi-nor: fix minmax.cocci warnings Date: Mon, 28 Mar 2022 11:28:30 +0530 Message-ID: <9a20ed24-be9d-bbec-19da-56c0ff68cbda@ti.com> In-Reply-To: List-Id: --===============2836212031125638142== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hi. On 26/03/22 2:00 pm, Julia Lawall wrote: > From: kernel test robot > = > Use min to simplify the code. > = > Generated by: scripts/coccinelle/misc/minmax.cocci > = > Fixes: 2747bc2106aa ("mtd: spi-nor: Add dual parallel and stacked mode su= pport") > CC: Amit Kumar Mahapatra > Reported-by: kernel test robot > Signed-off-by: kernel test robot > Signed-off-by: Julia Lawall > --- > = > tree: https://github.com/Xilinx/linux-xlnx xlnx_rebase_v5.15_LTS > head: 1870e0fa79a9d58c6748c34550f3ccea0b515933 > commit: 2747bc2106aa429773d9a932c799aa6229595148 [840/1029] mtd: spi-nor:= Add dual parallel and stacked mode support > :::::: branch date: 34 hours ago > :::::: commit date: 8 weeks ago > = > drivers/mtd/spi-nor/core.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > = > --- a/drivers/mtd/spi-nor/core.c > +++ b/drivers/mtd/spi-nor/core.c > @@ -2034,10 +2034,7 @@ static int spi_nor_read(struct mtd_info > (offset << nor->shift); > } > } > - if (len < rem_bank_len) > - read_len =3D len; > - else > - read_len =3D rem_bank_len; > + read_len =3D min(len, rem_bank_len); This chunk does not exist in mainline. Seems like xlnx local changes. Regards Vignesh --===============2836212031125638142==--