Messages in this thread | | | From | Doug Anderson <> | Date | Fri, 24 Apr 2020 10:11:43 -0700 | Subject | Re: [PATCH 3/3] soc: qcom: rpmh-rsc: Fold WARN_ON() into if condition |
| |
Hi,
On Thu, Apr 23, 2020 at 9:54 PM Stephen Boyd <swboyd@chromium.org> wrote: > > Move the WARN_ON() into the if condition so the compiler can see that > the branch is unlikely() and possibly optimize it better. > > Cc: Maulik Shah <mkshah@codeaurora.org> > Cc: Douglas Anderson <dianders@chromium.org> > Signed-off-by: Stephen Boyd <swboyd@chromium.org> > --- > drivers/soc/qcom/rpmh-rsc.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-)
Reviewed-by: Douglas Anderson <dianders@chromium.org>
| |