Commit 0138c16
scsi: hpsa: use min()/min_t() to improve code
Use min()/min_t() to reduce the code in complete_scsi_command() and
hpsa_vpd_page_supported(), and improve readability.
Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Link: https://lore.kernel.org/r/20250815121609.384914-3-rongqianfeng@vivo.com
Acked-by: Don Brace <don.brace@microchip.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent b5940fe commit 0138c16
1 file changed
Lines changed: 3 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2662 | 2662 | | |
2663 | 2663 | | |
2664 | 2664 | | |
2665 | | - | |
2666 | | - | |
2667 | | - | |
2668 | | - | |
| 2665 | + | |
| 2666 | + | |
2669 | 2667 | | |
2670 | 2668 | | |
2671 | 2669 | | |
| |||
3628 | 3626 | | |
3629 | 3627 | | |
3630 | 3628 | | |
3631 | | - | |
3632 | | - | |
3633 | | - | |
3634 | | - | |
| 3629 | + | |
3635 | 3630 | | |
3636 | 3631 | | |
3637 | 3632 | | |
| |||
0 commit comments