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:
parent
14b733aaa6
commit
72dfb34cdf
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,7 @@ static int intel_s1000_pinmux_init(const struct device *dev)
|
|||
|
||||
__ASSERT_NO_MSG(device_is_ready(pinmux));
|
||||
|
||||
if (pinmux == NULL) {
|
||||
if (!device_is_ready(pinmux)) {
|
||||
return -ENXIO;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue