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 *cache = &ppd->qsfp_info.cache[0];
|
||||||
u8 bin_buff[QSFP_DUMP_CHUNK];
|
u8 bin_buff[QSFP_DUMP_CHUNK];
|
||||||
char lenstr[6];
|
char lenstr[6];
|
||||||
int sofar, ret;
|
int sofar;
|
||||||
int bidx = 0;
|
int bidx = 0;
|
||||||
u8 *atten = &cache[QSFP_ATTEN_OFFS];
|
u8 *atten = &cache[QSFP_ATTEN_OFFS];
|
||||||
u8 *vendor_oui = &cache[QSFP_VOUI_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;
|
bidx += QSFP_DUMP_CHUNK;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ret = sofar;
|
return sofar;
|
||||||
return ret;
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue