[PATCH 6/6] nvme/rdma: Make nvme_rdma_conn_rejected() more informative
Bart Van Assche
bart.vanassche at sandisk.com
Wed Oct 19 10:08:54 PDT 2016
On 10/19/2016 03:41 AM, Christoph Hellwig wrote:
>> {
>> + char reason[32];
>>
>> + switch (ev->status) {
>> + case IB_CM_REJ_DUPLICATE_LOCAL_COMM_ID:
>> + strlcpy(reason, "duplicate local comm id", sizeof(reason));
>> + break;
>> + case IB_CM_REJ_CONSUMER_DEFINED:
>> + if (ev->param.conn.private_data_len) {
>> + const struct nvme_rdma_cm_rej *rej =
>> + (const void *)ev->param.conn.private_data;
>
> What's the point of this void pointer cast?
Hello Christoph,
That cast is not necessary according to the C language standard. I will
remove it.
Bart.
More information about the Linux-nvme
mailing list