]> git.baikalelectronics.ru Git - kernel.git/commit
lockd: remove redundant check on block
authorColin Ian King <colin.king@canonical.com>
Sat, 8 Apr 2017 17:09:59 +0000 (18:09 +0100)
committerJ. Bruce Fields <bfields@redhat.com>
Tue, 25 Apr 2017 21:25:56 +0000 (17:25 -0400)
commitaf2e9d49c4cf8810f48b3bad2f5d5107f082a4fd
tree637506d4743c9808db8612d962fdaf7e9c19ac14
parentd5d5feae2b845da40e41af25884835ba1b8871e8
lockd: remove redundant check on block

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.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/lockd/svclock.c