mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 02:25:21 +07:00
staging: rdma: hfi1: Remove unnecessary variable
Drop unnecessary variable that can be replaced by a single line of code. Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
bccb763d5f
commit
463f8e7223
@ -475,7 +475,7 @@ int qsfp_dump(struct hfi1_pportdata *ppd, char *buf, int len)
|
||||
u8 *cache = &ppd->qsfp_info.cache[0];
|
||||
u8 bin_buff[QSFP_DUMP_CHUNK];
|
||||
char lenstr[6];
|
||||
int sofar, ret;
|
||||
int sofar;
|
||||
int bidx = 0;
|
||||
u8 *atten = &cache[QSFP_ATTEN_OFFS];
|
||||
u8 *vendor_oui = &cache[QSFP_VOUI_OFFS];
|
||||
@ -536,6 +536,5 @@ int qsfp_dump(struct hfi1_pportdata *ppd, char *buf, int len)
|
||||
bidx += QSFP_DUMP_CHUNK;
|
||||
}
|
||||
}
|
||||
ret = sofar;
|
||||
return ret;
|
||||
return sofar;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user