Re: [PATCH] net: Convert int functions to bool

2017-09-18 Thread David Miller
From: Joe Perches Date: Wed, 13 Sep 2017 13:58:15 -0700 > Global function ipv6_rcv_saddr_equal and static functions > ipv6_rcv_saddr_equal and ipv4_rcv_saddr_equal currently return int. > > bool is slightly more descriptive for these functions so change > their return type from int to bool. > >

Re: [PATCH] net: Convert int functions to bool

2017-09-13 Thread Joe Perches
On Thu, 2017-09-14 at 01:31 +0300, Alexey Dobriyan wrote: > > Global function ipv6_rcv_saddr_equal and static functions > > ipv6_rcv_saddr_equal and ipv4_rcv_saddr_equal currently return int. > > > > bool is slightly more descriptive for these functions so change > > their return type from int to

Re: [PATCH] net: Convert int functions to bool

2017-09-13 Thread Alexey Dobriyan
> Global function ipv6_rcv_saddr_equal and static functions > ipv6_rcv_saddr_equal and ipv4_rcv_saddr_equal currently return int. > > bool is slightly more descriptive for these functions so change > their return type from int to bool. >From code generation POV "int" is better for non-inlined func

[PATCH] net: Convert int functions to bool

2017-09-13 Thread Joe Perches
Global function ipv6_rcv_saddr_equal and static functions ipv6_rcv_saddr_equal and ipv4_rcv_saddr_equal currently return int. bool is slightly more descriptive for these functions so change their return type from int to bool. Signed-off-by: Joe Perches --- include/net/addrconf.h | 4 +