[PATCH 2/4] 9p/rdma: remove useless check in cm_event_handler

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet 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... Addresses-Coverity-ID: 102778 ("Dereference before null check") Signed-off-by: Dominique Martinet ---

[PATCH 2/4] 9p/rdma: remove useless check in cm_event_handler

2018-09-07 Thread Dominique Martinet
From: Dominique Martinet 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... Addresses-Coverity-ID: 102778 ("Dereference before null check") Signed-off-by: Dominique Martinet ---