interconnect: qcom: Simplify the vcd compare function
authorGeorgi Djakov <georgi.djakov@linaro.org>
Tue, 13 Oct 2020 17:19:23 +0000 (20:19 +0300)
committerGeorgi Djakov <georgi.djakov@linaro.org>
Mon, 30 Nov 2020 15:26:22 +0000 (17:26 +0200)
commitbe49d5b2985bca407d130305ad78021d3c17db19
treeb9af4232cfb38d65b7c8f825c535e1bef0bbaccf
parent3cea11cd5e3b00d91caf0b4730194039b45c5891
interconnect: qcom: Simplify the vcd compare function

Let's simplify the cmp_vcd() function and replace the conditionals
with just a single statement, which also improves readability.

Reviewed-by: Mike Tipton <mdtipton@codeaurora.org>
Link: https://lore.kernel.org/r/20201013171923.7351-1-georgi.djakov@linaro.org
Signed-off-by: Georgi Djakov <georgi.djakov@linaro.org>
drivers/interconnect/qcom/bcm-voter.c