| .. | .. |
|---|
| 397 | 397 | |
|---|
| 398 | 398 | /* Short circuit if we have already discovered the barker |
|---|
| 399 | 399 | * associated with the device. */ |
|---|
| 400 | | - if (i2400m->barker |
|---|
| 401 | | - && !memcmp(buf, i2400m->barker, sizeof(i2400m->barker->data))) { |
|---|
| 402 | | - unsigned index = (i2400m->barker - i2400m_barker_db) |
|---|
| 403 | | - / sizeof(*i2400m->barker); |
|---|
| 404 | | - d_printf(2, dev, "boot barker cache-confirmed #%u/%08x\n", |
|---|
| 405 | | - index, le32_to_cpu(i2400m->barker->data[0])); |
|---|
| 400 | + if (i2400m->barker && |
|---|
| 401 | + !memcmp(buf, i2400m->barker, sizeof(i2400m->barker->data))) |
|---|
| 406 | 402 | return 0; |
|---|
| 407 | | - } |
|---|
| 408 | 403 | |
|---|
| 409 | 404 | for (i = 0; i < i2400m_barker_db_used; i++) { |
|---|
| 410 | 405 | barker = &i2400m_barker_db[i]; |
|---|