RE: [PATCH 09/23] verbs: Fix incorrect type of len

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> gcc remarks:
> 
> ../librdmacm/examples/udpong.c:301:11: warning: comparison of unsigned
> expression < 0 is always false [-Wtype-limits]
>    if (len < 0)
> 
> len is set by:
> 		len = svr_recv(&msg, sizeof msg, &addr, &addrlen);
> 
> And svr_recv returns:
> 
> static ssize_t svr_recv(struct message *msg, size_t size,
> 
> So clearly len is the wrong type, and the error test does
> not work.
> 
> Signed-off-by: Jason Gunthorpe <jgunthorpe@xxxxxxxxxxxxxxxxxxxx>

Acked-by: Sean Hefty <sean.hefty@xxxxxxxxx>
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux