Messages in this thread | | | From | Chaitanya Kulkarni <> | Subject | Re: [PATCH] xen-blkback: remove redundant assignment to variable i | Date | Fri, 18 Mar 2022 00:25:37 +0000 |
| |
On 3/17/22 4:46 PM, Colin Ian King wrote: > Variable i is being assigned a value that is never read, it is being > re-assigned later in a for-loop. The assignment is redundant and can > be removed. > > Cleans up clang scan build warning: > drivers/block/xen-blkback/blkback.c:934:14: warning: Although the value > stored to 'i' is used in the enclosing expression, the value is never > actually read from 'i' [deadcode.DeadStores] > > Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Looks good.
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
-ck
| |