[PATCH -next] [media] davinci: vpfe: fix return value check in vpfe_enable_clock()

Sakari Ailus sakari.ailus at iki.fi
Sun Mar 17 10:20:42 UTC 2013


Hi Wei,

Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei at trendmicro.com.cn>
> 
> In case of error, the function clk_get() returns ERR_PTR()
> and never returns NULL. The NULL test in the return value
> check should be replaced with IS_ERR().
> 
> Signed-off-by: Wei Yongjun <yongjun_wei at trendmicro.com.cn>

Reviewed-by: Sakari Ailus <sakari.ailus at iki.fi>

-- 
Kind regards,

Sakari Ailus
sakari.ailus at iki.fi



More information about the devel mailing list