From: Vinson Lee Date: Mon, 25 May 2020 00:18:04 +0000 (-0700) Subject: r600/sfn: Use correct setter method. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1241f8cb4c9c6cc65106a085be81963f3505a7d5;p=mesa.git r600/sfn: Use correct setter method. Fix warning reported by Coverity Scan. Useless call (USELESS_CALL) side_effect_free: Calling v->pin_to_channel() is only useful for its return value, which is ignored. Fixes: 5d10e3ec6066 ("r600/nir: Pin interpolation results to channel") Signed-off-by: Vinson Lee Reviewed-by: Gert Wollny Part-of: --- diff --git a/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp b/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp index 35d90a87b22..bc4a0a59e65 100644 --- a/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp +++ b/src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp @@ -149,7 +149,7 @@ void GPRVector::set_reg_i(int i, PValue reg) void GPRVector::pin_to_channel(int i) { auto& v = static_cast(*m_elms[i]); - v.pin_to_channel(); + v.set_pin_to_channel(); } void GPRVector::do_print(std::ostream& os) const