boards: intel_s1000_crb: device_is_ready instead of NULL check

This changes the NULL check to be using device_is_ready().

Fixes #32946
CID #219494

Signed-off-by: Daniel Leung <daniel.leung@intel.com>
This commit is contained in:
Daniel Leung 2021-03-06 16:28:03 -08:00 committed by Anas Nashif
commit 72dfb34cdf

View file

@ -29,7 +29,7 @@ static int intel_s1000_pinmux_init(const struct device *dev)
__ASSERT_NO_MSG(device_is_ready(pinmux)); __ASSERT_NO_MSG(device_is_ready(pinmux));
if (pinmux == NULL) { if (!device_is_ready(pinmux)) {
return -ENXIO; return -ENXIO;
} }