Re: [PATCH v2] regulator: s2mps11: Simplify expression used in BUILD_BUG_ON

From: Arnd Bergmann
Date: Thu Feb 18 2016 - 04:05:47 EST


On Thursday 18 February 2016 10:48:39 Krzysztof Kozlowski wrote:
>
> Sure, it can be safely removed from s2mps11_info... but it won't affect
> this issue and this patch. Still the local variable would be used in
> probe leading to compiler optimization choices impacting BUILD_BUG_ON.

A local variable probably works fine, I can test that if we think that
would improve the code.

Arnd