Commit 82b8166
ata: ahci_xgene: Use int type for 'rc' to store error codes
Use int instead of u32 for the 'rc' variable in xgene_ahci_softreset()
to store negative error codes returned by ahci_do_softreset().
In xgene_ahci_pmp_softreset(), remove the redundant 'rc' variable and
directly return the result of the ahci_do_softreset() call instead.
Signed-off-by: Qianfeng Rong <[email protected]>
Signed-off-by: Damien Le Moal <[email protected]>1 parent 70c1595 commit 82b8166
1 file changed
+2
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | 453 | | |
455 | 454 | | |
456 | 455 | | |
| |||
463 | 462 | | |
464 | 463 | | |
465 | 464 | | |
466 | | - | |
467 | | - | |
468 | | - | |
| 465 | + | |
469 | 466 | | |
470 | 467 | | |
471 | 468 | | |
| |||
500 | 497 | | |
501 | 498 | | |
502 | 499 | | |
503 | | - | |
| 500 | + | |
504 | 501 | | |
505 | 502 | | |
506 | 503 | | |
| |||
0 commit comments