Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit de98a43e authored by Vignesh Raghavendra's avatar Vignesh Raghavendra Committed by Lee Jones
Browse files

mfd: ti_am335x_tscadc: Fix static checker warning


It is possible that platform_get_resource() might return NULL and
therefore code needs to check for this condition before
de-referencing the pointer.

Therefore move the de-referencing of 'res' pointer after
devm_ioremap_resource() which would have checked the validity of the
pointer.

Reported-by: default avatarDan Murphy <dmurphy@ti.com>
Signed-off-by: default avatarVignesh Raghavendra <vigneshr@ti.com>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent cfca8bb2
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment