Re: [PATCH] x86/unwind: remove unneeded initialization

From: Peter Zijlstra
Date: Thu Oct 29 2020 - 08:05:00 EST


On Thu, Oct 29, 2020 at 11:49:50AM +0000, Walter Harms wrote:
> this looks like a reimplementation of bsearch()
> perhaps the maintainer can add a comment why the
> kernel implementation is not suitable here ?

If you look carefully it doesn't do an exact match, which is what
bsearch() does.

bsearch() also isn't stable in the precense of duplicates.