Message ID | 20250130080418.37915-1-a.vatoropin@crpt.ru (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | RDMA/erdma: Drop redundant NULL check on error path | expand |
diff --git a/drivers/infiniband/hw/erdma/erdma_cm.c b/drivers/infiniband/hw/erdma/erdma_cm.c index 771059a8eb7d..2934081dfbd4 100644 --- a/drivers/infiniband/hw/erdma/erdma_cm.c +++ b/drivers/infiniband/hw/erdma/erdma_cm.c @@ -1116,8 +1116,7 @@ int erdma_connect(struct iw_cm_id *id, struct iw_cm_conn_param *params) erdma_cep_put(cep); error_release_sock: - if (s) - sock_release(s); + sock_release(s); error_put_qp: erdma_qp_put(qp);