Re: [PATCH] mtd: spi-nor: remove superfluous pass of nor->info->sector_size

2019-08-29 Thread Tudor.Ambarus
On 08/28/2019 01:35 PM, Tudor Ambarus - M18064 wrote: > From: Tudor Ambarus > > We already pass a pointer to nor, we can obtain the sector_size > by dereferencing it. > > Signed-off-by: Tudor Ambarus > --- > drivers/mtd/spi-nor/spi-nor.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deleti

Re: [PATCH] mtd: spi-nor: remove superfluous pass of nor->info->sector_size

2019-08-29 Thread Vignesh Raghavendra
On 28/08/19 4:05 PM, tudor.amba...@microchip.com wrote: > From: Tudor Ambarus > > We already pass a pointer to nor, we can obtain the sector_size > by dereferencing it. > > Signed-off-by: Tudor Ambarus > --- Reviewed-by: Vignesh Raghavendra Regards Vignesh > drivers/mtd/spi-nor/spi-nor.

[PATCH] mtd: spi-nor: remove superfluous pass of nor->info->sector_size

2019-08-28 Thread Tudor.Ambarus
From: Tudor Ambarus We already pass a pointer to nor, we can obtain the sector_size by dereferencing it. Signed-off-by: Tudor Ambarus --- drivers/mtd/spi-nor/spi-nor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/spi-nor/spi-nor.c b/drivers/mtd/spi-nor/s