9p/rdma: remove useless check in cm_event_handler
authorDominique Martinet <dominique.martinet@cea.fr>
Fri, 7 Sep 2018 15:26:50 +0000 (00:26 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Jul 2019 11:15:58 +0000 (13:15 +0200)
commit9e69c673fe077b8dc491cd8406c9bdcb1f76dee2
tree26c1a50107c9ce37ba08c0e38c8a738ac613f1c6
parentc9928b45845bfd4c13e41ae8391769cf6f7eb198
9p/rdma: remove useless check in cm_event_handler

[ Upstream commit 473c7dd1d7b59ff8f88a5154737e3eac78a96e5b ]

the client c is always dereferenced to get the rdma struct, so c has to
be a valid pointer at this point.
Gcc would optimize that away but let's make coverity happy...

Link: http://lkml.kernel.org/r/1536339057-21974-3-git-send-email-asmadeus@codewreck.org
Addresses-Coverity-ID: 102778 ("Dereference before null check")
Signed-off-by: Dominique Martinet <dominique.martinet@cea.fr>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/9p/trans_rdma.c