[PATCH 3/2] Remove linear pressure interpolation detection code
Linus Torvalds
torvalds at linux-foundation.org
Sat Apr 2 05:45:47 PDT 2016
On Sat, 2 Apr 2016, Linus Torvalds wrote:
>
> The initialization
>
> - int pressure_delta[MAX_CYLINDERS] = { INT_MAX, };
>
> only sets the first entry to INT_MAX, the rest will be initialized to
> zero
Side note: instead of applying the "remove the code entirely" patch,
alternatively this initialization could just be fixed, to look somethin
glike
int pressure_delta[MAX_CYLINDERS] = {
[0 ... MAX_CYLINDERS-1] = INT_MAX
};
to actually initialize them all. But if we really have no reason to worry
about bogus linear interpolation data any more, removing it all is
probably the right thing to do.
Linus
More information about the subsurface
mailing list