commit | 581069942c033871ec1bb48db873bf9a214d58e9 | [log] [tgz] |
---|---|---|
author | Kumar Gala <kumar.gala@linaro.org> | Tue May 11 09:28:18 2021 -0500 |
committer | Kumar Gala <kumar.gala@gmail.com> | Tue May 11 10:47:39 2021 -0500 |
tree | 62bc6d65772bb4dd12d9d007c7fd0f8fa9523adb | |
parent | 53b8706f05aee7777caae8b6d3c2e5bde957a4bf [diff] |
samples: sensor: max17262: Fix NULL pointer dereference If we don't get a dev pointer from device_get_binding() we should not dereference it. Just drop the name from the printk message as in the future this is likely to use DEVICE_DT_GET(). Fixes #35112 Signed-off-by: Kumar Gala <kumar.gala@linaro.org>