The variable 'pri_path' is assigned a value but is never used.
This triggers the following compiler warning:
src/acm.c:301:26: warning: variable 'pri_path' set but not used [-Wunused-but-set-variable]
Hence remove this variable.
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
{
struct acm_ep_addr_data *ep_data;
struct ibv_path_data *path_data = NULL;
- struct ibv_path_record *pri_path = NULL;
struct sockaddr_in *sin;
struct sockaddr_in6 *sin6;
int i, cnt, path_cnt = 0;
if (!path_data)
path_data = (struct ibv_path_data *) ep_data;
path_cnt++;
- if (ep_data->flags |
- (IBV_PATH_FLAG_PRIMARY | IBV_PATH_FLAG_OUTBOUND))
- pri_path = &path_data[i].path;
break;
case ACM_EP_INFO_ADDRESS_IP:
if (!(ep_data->flags & ACM_EP_FLAG_SOURCE) || rai->ai_src_len)