Commit c788cf8
scsi: ufs: core: Simplify ufshcd_comp_scsi_upiu()
ufshcd_comp_scsi_upiu() has one caller and that caller ensures that
lrbp->cmd != NULL. Hence leave out the lrbp->cmd check from
ufshcd_comp_scsi_upiu().
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20230921192335.676924-4-bvanassche@acm.org
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>1 parent 858231b commit c788cf8
1 file changed
Lines changed: 4 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2714 | 2714 | | |
2715 | 2715 | | |
2716 | 2716 | | |
2717 | | - | |
2718 | | - | |
2719 | 2717 | | |
2720 | | - | |
| 2718 | + | |
2721 | 2719 | | |
2722 | 2720 | | |
2723 | | - | |
2724 | 2721 | | |
2725 | 2722 | | |
2726 | 2723 | | |
2727 | 2724 | | |
2728 | 2725 | | |
2729 | 2726 | | |
2730 | | - | |
2731 | | - | |
2732 | | - | |
2733 | | - | |
2734 | | - | |
2735 | | - | |
2736 | | - | |
2737 | | - | |
| 2727 | + | |
| 2728 | + | |
| 2729 | + | |
2738 | 2730 | | |
2739 | 2731 | | |
2740 | 2732 | | |
| |||
0 commit comments