Commit fea2bfde authored by Qiang Liu's avatar Qiang Liu Committed by Martin K. Petersen
Browse files

scsi: bfa: Remove self-assignment code



The variable num_cqs is of type u8 and does not require be16_to_cpu
conversion, so the redundant code is removed.

Signed-off-by: default avatarQiang Liu <liuqiang@kylinos.cn>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent d76afd8d
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -1282,7 +1282,6 @@ bfa_iocfc_cfgrsp(struct bfa_s *bfa)
	struct bfi_iocfc_cfgrsp_s	*cfgrsp	 = iocfc->cfgrsp;
	struct bfa_iocfc_fwcfg_s	*fwcfg	 = &cfgrsp->fwcfg;

	fwcfg->num_cqs	      = fwcfg->num_cqs;
	fwcfg->num_ioim_reqs  = be16_to_cpu(fwcfg->num_ioim_reqs);
	fwcfg->num_fwtio_reqs = be16_to_cpu(fwcfg->num_fwtio_reqs);
	fwcfg->num_tskim_reqs = be16_to_cpu(fwcfg->num_tskim_reqs);