File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -2714,27 +2714,19 @@ static int ufshcd_compose_devman_upiu(struct ufs_hba *hba,
2714
2714
* for SCSI Purposes
2715
2715
* @hba: per adapter instance
2716
2716
* @lrbp: pointer to local reference block
2717
- *
2718
- * Return: 0 upon success; < 0 upon failure.
2719
2717
*/
2720
- static int ufshcd_comp_scsi_upiu (struct ufs_hba * hba , struct ufshcd_lrb * lrbp )
2718
+ static void ufshcd_comp_scsi_upiu (struct ufs_hba * hba , struct ufshcd_lrb * lrbp )
2721
2719
{
2722
2720
u8 upiu_flags ;
2723
- int ret = 0 ;
2724
2721
2725
2722
if (hba -> ufs_version <= ufshci_version (1 , 1 ))
2726
2723
lrbp -> command_type = UTP_CMD_TYPE_SCSI ;
2727
2724
else
2728
2725
lrbp -> command_type = UTP_CMD_TYPE_UFS_STORAGE ;
2729
2726
2730
- if (likely (lrbp -> cmd )) {
2731
- ufshcd_prepare_req_desc_hdr (lrbp , & upiu_flags , lrbp -> cmd -> sc_data_direction , 0 );
2732
- ufshcd_prepare_utp_scsi_cmd_upiu (lrbp , upiu_flags );
2733
- } else {
2734
- ret = - EINVAL ;
2735
- }
2736
-
2737
- return ret ;
2727
+ ufshcd_prepare_req_desc_hdr (lrbp , & upiu_flags ,
2728
+ lrbp -> cmd -> sc_data_direction , 0 );
2729
+ ufshcd_prepare_utp_scsi_cmd_upiu (lrbp , upiu_flags );
2738
2730
}
2739
2731
2740
2732
/**
You can’t perform that action at this time.
0 commit comments