Skip to content
Commit dd89d82e authored by Dan Carpenter's avatar Dan Carpenter Committed by Eduardo Valentin
Browse files

thermal: thermal_mmio: remove some dead code



The platform_get_resource() function doesn't return error pointers, it
returns NULL.  The way this is normally done, is that we pass the NULL
resource to devm_ioremap_resource() and then check for errors from that.
See the comment in front of devm_ioremap_resource() for more details.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarTalel Shenhar <talel@amazon.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 56037cad
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment