* [PATCH] iwcm: Fix a sparse warning
@ 2016-04-12 21:43 Bart Van Assche
[not found] ` <570D6C0D.4070609-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Bart Van Assche @ 2016-04-12 21:43 UTC (permalink / raw)
To: Doug Ledford
Cc: Steve Wise, Faisal Latif,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Avoid that sparse complains about the comparison of s_addr
with INADDR_ANY.
Signed-off-by: Bart Van Assche <bart.vanassche-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
Cc: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
Cc: Faisal Latif <faisal.latif-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
---
drivers/infiniband/core/iwcm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/infiniband/core/iwcm.c b/drivers/infiniband/core/iwcm.c
index e28a160..fe0bd6c 100644
--- a/drivers/infiniband/core/iwcm.c
+++ b/drivers/infiniband/core/iwcm.c
@@ -459,7 +459,7 @@ static void iw_cm_check_wildcard(struct sockaddr_storage *pm_addr,
if (pm_addr->ss_family == AF_INET) {
struct sockaddr_in *pm4_addr = (struct sockaddr_in *)pm_addr;
- if (pm4_addr->sin_addr.s_addr == INADDR_ANY) {
+ if (pm4_addr->sin_addr.s_addr == htonl(INADDR_ANY)) {
struct sockaddr_in *cm4_addr =
(struct sockaddr_in *)cm_addr;
struct sockaddr_in *cm4_outaddr =
--
2.8.1
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] iwcm: Fix a sparse warning
[not found] ` <570D6C0D.4070609-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
@ 2016-04-12 21:46 ` Steve Wise
0 siblings, 0 replies; 2+ messages in thread
From: Steve Wise @ 2016-04-12 21:46 UTC (permalink / raw)
To: Bart Van Assche, Doug Ledford
Cc: Faisal Latif, linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
On 4/12/2016 4:43 PM, Bart Van Assche wrote:
> Avoid that sparse complains about the comparison of s_addr
> with INADDR_ANY.
>
>
Looks good.
Reviewed-by: Steve Wise <swise-7bPotxP6k4+P2YhJcF5u+vpXobYPEAuW@public.gmane.org>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-04-12 21:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-12 21:43 [PATCH] iwcm: Fix a sparse warning Bart Van Assche
[not found] ` <570D6C0D.4070609-XdAiOPVOjttBDgjK7y7TUQ@public.gmane.org>
2016-04-12 21:46 ` Steve Wise
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox