RDMA/cxgb3: Use AF_INET for sin_family field
authorAmitoj Kaur Chawla <amitoj1606@gmail.com>
Mon, 4 Jul 2016 12:57:45 +0000 (18:27 +0530)
committerDoug Ledford <dledford@redhat.com>
Tue, 2 Aug 2016 17:04:42 +0000 (13:04 -0400)
commit3b8fb4b86cf1fb6a3617dc8394f605834fe73f5c
treed51436b6bfa61b6fa6af08bbaade5bc1e6437e2e
parent56b2eca3fea8ea4fb6ec732b98470a09385cb1eb
RDMA/cxgb3: Use AF_INET for sin_family field

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:

// <smpl>
@@
struct sockaddr_in sip;
@@

(
sip.sin_family ==
- PF_INET
+ AF_INET
|
sip.sin_family !=
- PF_INET
+ AF_INET
|
sip.sin_family =
- PF_INET
+ AF_INET
)
// </smpl>

Signed-off-by: Amitoj Kaur Chawla <amitoj1606@gmail.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/cxgb3/iwch_cm.c