mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 08:08:54 +00:00
RDMA/irdma: remove redundant initialization of variable val
The variable val is being initialized with a value that is never read, it is being updated later on. The assignment is redundant and can be removed. Link: https://lore.kernel.org/r/20210605131347.26293-1-colin.king@canonical.com Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Shiraz Saleem <shiraz.saleem@intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
This commit is contained in:
parent
1b01a42c9c
commit
cd16b32c15
1 changed files with 1 additions and 1 deletions
|
@ -3323,7 +3323,7 @@ __le64 *irdma_sc_cqp_get_next_send_wqe_idx(struct irdma_sc_cqp *cqp, u64 scratch
|
|||
*/
|
||||
enum irdma_status_code irdma_sc_cqp_destroy(struct irdma_sc_cqp *cqp)
|
||||
{
|
||||
u32 cnt = 0, val = 1;
|
||||
u32 cnt = 0, val;
|
||||
enum irdma_status_code ret_code = 0;
|
||||
|
||||
writel(0, cqp->dev->hw_regs[IRDMA_CCQPHIGH]);
|
||||
|
|
Loading…
Reference in a new issue