flashrom: Small cleanup, big readability improvement
Signed-off-by: Peter Stuge <peter@stuge.se>
|
|
|
|
| 113 | 113 | int it87xx_probe_spi_flash(const char *name) |
| 114 | 114 | { |
| 115 | 115 | it8716f_flashport = find_ite_spi_flash_port(ITE_SUPERIO_PORT1); |
| 116 | | |
| 117 | | if (!it8716f_flashport) |
| | 116 | if (!it8716f_flashport) { |
| 118 | 117 | it8716f_flashport = find_ite_spi_flash_port(ITE_SUPERIO_PORT2); |
| | 118 | if (!it8716f_flashport) |
| | 119 | return 1; |
| | 120 | } |
| 119 | 121 | |
| 120 | | if (it8716f_flashport) |
| 121 | | flashbus = BUS_TYPE_IT87XX_SPI; |
| 122 | | |
| 123 | | return (!it8716f_flashport); |
| | 122 | flashbus = BUS_TYPE_IT87XX_SPI; |
| | 123 | return 0; |
| 124 | 124 | } |
| 125 | 125 | |
| 126 | 126 | /* The IT8716F only supports commands with length 1,2,4,5 bytes including |