mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-05 07:26:48 +07:00
mtd: m25p80: Use positive logic to check JEDEC ID
For slightly better readability. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Brian Norris <computersforpeace@gmail.com>
This commit is contained in:
parent
bd9c6e99b5
commit
b2fda1296b
@ -1078,8 +1078,7 @@ static const struct spi_device_id *jedec_probe(struct spi_device *spi)
|
||||
for (tmp = 0; tmp < ARRAY_SIZE(m25p_ids) - 1; tmp++) {
|
||||
info = (void *)m25p_ids[tmp].driver_data;
|
||||
if (info->jedec_id == jedec) {
|
||||
if (info->ext_id != 0 && info->ext_id != ext_jedec)
|
||||
continue;
|
||||
if (info->ext_id == 0 || info->ext_id == ext_jedec)
|
||||
return &m25p_ids[tmp];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user