Re: [PATCH] dmaengine: idxd: Remove redundant variable cdev_ctx

From: Vinod Koul
Date: Mon May 10 2021 - 10:36:59 EST


On 06-05-21, 19:00, Jiapeng Chong wrote:
> Variable cdev_ctx is set to '&ictx[wq->idxd->data->type]' but this
> value is not used, hence it is a redundant assignment and can be
> removed.
>
> Clean up the following clang-analyzer warning:
>
> drivers/dma/idxd/cdev.c:300:2: warning: Value stored to 'cdev_ctx' is
> never read [clang-analyzer-deadcode.DeadStores].

Applied, thanks

--
~Vinod