From 1241f8cb4c9c6cc65106a085be81963f3505a7d5 Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Sun, 24 May 2020 17:18:04 -0700 Subject: [PATCH] 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: --- src/gallium/drivers/r600/sfn/sfn_value_gpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2