File tree Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Expand file tree Collapse file tree 1 file changed +5
-12
lines changed Original file line number Diff line number Diff line change @@ -8768,33 +8768,26 @@ static
8768
8768
int megasas_update_device_list (struct megasas_instance * instance ,
8769
8769
int event_type )
8770
8770
{
8771
- int dcmd_ret = DCMD_SUCCESS ;
8771
+ int dcmd_ret ;
8772
8772
8773
8773
if (instance -> enable_fw_dev_list ) {
8774
- dcmd_ret = megasas_host_device_list_query (instance , false);
8775
- if (dcmd_ret != DCMD_SUCCESS )
8776
- goto out ;
8774
+ return megasas_host_device_list_query (instance , false);
8777
8775
} else {
8778
8776
if (event_type & SCAN_PD_CHANNEL ) {
8779
8777
dcmd_ret = megasas_get_pd_list (instance );
8780
-
8781
8778
if (dcmd_ret != DCMD_SUCCESS )
8782
- goto out ;
8779
+ return dcmd_ret ;
8783
8780
}
8784
8781
8785
8782
if (event_type & SCAN_VD_CHANNEL ) {
8786
8783
if (!instance -> requestorId ||
8787
8784
megasas_get_ld_vf_affiliation (instance , 0 )) {
8788
- dcmd_ret = megasas_ld_list_query (instance ,
8785
+ return megasas_ld_list_query (instance ,
8789
8786
MR_LD_QUERY_TYPE_EXPOSED_TO_HOST );
8790
- if (dcmd_ret != DCMD_SUCCESS )
8791
- goto out ;
8792
8787
}
8793
8788
}
8794
8789
}
8795
-
8796
- out :
8797
- return dcmd_ret ;
8790
+ return DCMD_SUCCESS ;
8798
8791
}
8799
8792
8800
8793
/**
You can’t perform that action at this time.
0 commit comments