mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 16:02:57 +00:00
Smatch complains because platform_get_resource() returns NULL on error and not an error pointer so the check is wrong. Julia Lawall pointed out that normally we don't check these, because devm_ioremap_resource() has a check for NULL. Signed-off-by: Dan Carpenter <[email protected]> Reviewed-by: Julia Lawall <[email protected]> Signed-off-by: MyungJoo Ham <[email protected]>