Re: [PATCH] lockd: remove redundant check on block

From: J . Bruce Fields
Date: Tue Apr 25 2017 - 16:56:55 EST


On Sat, Apr 08, 2017 at 06:09:59PM +0100, Colin King wrote:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> A null check followed by a return is being performed already, so block
> is always non-null at the second check on block, hence we can remove
> this redundant null-check (Detected by PVS-Studio). Also re-work
> comment to clean up a check-patch warning.

Thanks, applying for 4.12.--b.