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

2001-05-08 Thread Jesper Juhl
Ronald Bultje wrote: > 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); >> } >> > > >

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

2001-05-07 Thread Ronald Bultje
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-

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

2001-05-07 Thread Jesper Juhl
Hi all, Some time ago I posted about a question about some cleanup of what I thought looked like some strange code in the kernel - specifically about the sock_rcvlowat() function in linux/include/net/sock.h static inline int sock_rcvlowat(struct sock *sk, int waitall, int len) { retu