Re: [PATCH] mtd: spi-nor: sfdp: add/use local variable in spi_nor_parse_bfpt()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, April 22, 2020 10:00:18 PM EEST Sergei Shtylyov wrote:
> Despite of how spi_nor_parse_bfpt() abuses the structure fields during
> their calculation, gcc manages to make some decent code out of that. 
> Yet adding a local variable to store the BFPT DWORDs during calculations
> still saves 12 bytes of the object code (AArch64 gcc 4.8.5)...
> 
> Signed-off-by: Sergei Shtylyov <sergei.shtylyov@xxxxxxxxxxxxxxxxxx>
> 
> ---
> This patch is against the 'spi-nor/next' branch of the MTD 'linux.git' repo.
> 
>  drivers/mtd/spi-nor/sfdp.c |   22 +++++++++++-----------
>  1 file changed, 11 insertions(+), 11 deletions(-)

Applied, thanks.



______________________________________________________
Linux MTD discussion mailing list
http://lists.infradead.org/mailman/listinfo/linux-mtd/



[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux