Re: [PATCH] infiniband: remove redundant assignment to pointer 'rdi'
From: Jason Gunthorpe
Date: Tue Mar 06 2018 - 18:34:31 EST
On Thu, Mar 01, 2018 at 04:23:54PM +0000, Colin Ian King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> The pointer rdi is being initialized with a value that is never read
> and re-assigned immediately after, hence the initialization is redundant
> and can be removed.
>
> Cleans up clang warning:
> drivers/infiniband/sw/rdmavt/vt.c:94:23: warning: Value stored to 'rdi'
> during its initialization is never read
>
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>
> drivers/infiniband/sw/rdmavt/vt.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
applied to for-next, thanks
Jason