Re: Patch to improve readability of sock_rcvlowat() - comments wanted...

From: Ronald Bultje (rbultje@ronald.bitfreak.net)
Date: Mon May 07 2001 - 16:55:41 EST


On 2001.05.08 01:04:57 +0200 Jesper Juhl wrote:
>
> static inline int sock_rcvlowat(struct sock *sk, int waitall, int len)
> {
> int r = len;
> if (!waitall)
> r = min(sk->rcvlowat, len);
> return max(1,r);
> }
>

return max(1, waitall ? len : min(sk->rcvlowat, len));

Although I doubt this is more readable... :-)

--
Ronald

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon May 07 2001 - 21:00:26 EST