RE: [PATCH] tipc: Use bsearch library function

2017-09-12 Thread David Laight
From: David Miller > Sent: 11 September 2017 22:30 > From: Thomas Meyer > Date: Sat, 9 Sep 2017 05:18:19 +0200 > > > @@ -168,6 +169,18 @@ static struct name_seq *tipc_nameseq_create(u32 type, > > struct hlist_head > *seq_hea > > return nseq; > > } > > > > +static int

Re: [PATCH] tipc: Use bsearch library function

2017-09-11 Thread David Miller
From: Thomas Meyer Date: Sat, 9 Sep 2017 05:18:19 +0200 > @@ -168,6 +169,18 @@ static struct name_seq *tipc_nameseq_create(u32 type, > struct hlist_head *seq_hea > return nseq; > } > > +static int nameseq_find_subseq_cmp(const void *key, const void *elt) > +{ > +

[PATCH] tipc: Use bsearch library function

2017-09-11 Thread Thomas Meyer
Use common library function rather than explicitly coding some variant of it yourself. Signed-off-by: Thomas Meyer --- net/tipc/name_table.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/net/tipc/name_table.c