[PATCH] RDMA/cxgb3: Use AF_INET for sin_family field

2016-07-04 Thread Amitoj Kaur Chawla
Elsewhere the sin_family field holds a value with a name of the form AF_..., so it seems reasonable to do so here as well. Also the values of PF_INET and AF_INET are the same. The Coccinelle semantic patch that makes this change is as follows: // @@ struct sockaddr_in sip; @@ ( sip.sin_family

[PATCH] RDMA/cxgb3: Use AF_INET for sin_family field

2016-07-04 Thread Amitoj Kaur Chawla
Elsewhere the sin_family field holds a value with a name of the form AF_..., so it seems reasonable to do so here as well. Also the values of PF_INET and AF_INET are the same. The Coccinelle semantic patch that makes this change is as follows: // @@ struct sockaddr_in sip; @@ ( sip.sin_family