Re: [PATCH] mm/mempool: Add 'else' to split mutually exclusive case

2020-08-24 Thread Joe Perches
On Mon, 2020-08-24 at 12:18 -0700, Andrew Morton wrote: > On Mon, 24 Aug 2020 07:53:54 -0400 Miaohe Lin wrote: > > > Add else to split mutually exclusive case and avoid some unnecessary check. > > > > --- a/mm/mempool.c > > +++ b/mm/mempool.c > > @@ -60,9 +60,8 @@ static void check_element(mempo

Re: [PATCH] mm/mempool: Add 'else' to split mutually exclusive case

2020-08-24 Thread Matthew Wilcox
On Mon, Aug 24, 2020 at 12:18:40PM -0700, Andrew Morton wrote: > On Mon, 24 Aug 2020 07:53:54 -0400 Miaohe Lin wrote: > > > Add else to split mutually exclusive case and avoid some unnecessary check. > > > > --- a/mm/mempool.c > > +++ b/mm/mempool.c > > @@ -60,9 +60,8 @@ static void check_elemen

Re: [PATCH] mm/mempool: Add 'else' to split mutually exclusive case

2020-08-24 Thread Andrew Morton
On Mon, 24 Aug 2020 07:53:54 -0400 Miaohe Lin wrote: > Add else to split mutually exclusive case and avoid some unnecessary check. > > --- a/mm/mempool.c > +++ b/mm/mempool.c > @@ -60,9 +60,8 @@ static void check_element(mempool_t *pool, void *element) > /* Mempools backed by slab allocato