LF-2010 gpu: imx: imx8_dprc: Check return value of SCU func call in dprc_prg_sel_configure()
This patch checks the return value of imx_sc_misc_set_control() called in dprc_prg_sel_configure() and generates warning dmesg in case the return value is nonzero. The check makes Coverity happy. This fixes Coverity issue: CID 10836597. Signed-off-by: Liu Ying <victor.liu@nxp.com> Reviewed-by: Sandor Yu <sandor.yu@nxp.com>5.4-rM2-2.2.x-imx-squashed
parent
1b5dff0335
commit
20e5c86f47
|
@ -309,8 +309,12 @@ dprc_dpu_gpr_configure(struct dprc *dprc, unsigned int stream_id)
|
|||
static inline void
|
||||
dprc_prg_sel_configure(struct dprc *dprc, u32 resource, bool enable)
|
||||
{
|
||||
imx_sc_misc_set_control(dprc->ipc_handle,
|
||||
int ret;
|
||||
|
||||
ret = imx_sc_misc_set_control(dprc->ipc_handle,
|
||||
resource, IMX_SC_C_SEL0, enable);
|
||||
if (ret)
|
||||
dev_warn(dprc->dev, "failed to set SEL0: %d\n", ret);
|
||||
}
|
||||
|
||||
void dprc_configure(struct dprc *dprc, unsigned int stream_id,
|
||||
|
|
Loading…
Reference in New Issue