The variable 'id_priv' is assigned a value but is never used.
This triggers the following compiler warning:
src/cma.c:1178:25: warning: variable 'id_priv' set but not used [-Wunused-but-set-variable]
Hence remove this variable.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
int rdma_create_srq(struct rdma_cm_id *id, struct ibv_pd *pd,
struct ibv_srq_init_attr *attr)
{
- struct cma_id_private *id_priv;
struct ibv_srq *srq;
int ret;
- id_priv = container_of(id, struct cma_id_private, id);
if (!pd)
pd = id->pd;