mtd: spi-nor: sfdp: add/use local variable in spi_nor_parse_bfpt()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Wed, 22 Apr 2020 19:00:18 +0000 (22:00 +0300)
committerTudor Ambarus <tudor.ambarus@microchip.com>
Sun, 31 May 2020 04:28:48 +0000 (07:28 +0300)
commit0fa712c9db96b2c453809f85614aa008740ca8ec
tree4a103bdef79dce37b8b2baffa7e8711dbb722e5f
parentdec18bd8f4f2c600df581c075d59747e73bf6f3f
mtd: spi-nor: sfdp: add/use local variable in spi_nor_parse_bfpt()

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@cogentembedded.com>
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
drivers/mtd/spi-nor/sfdp.c