Skip to content

Commit

Permalink
boards: intel_s1000_crb: device_is_ready instead of NULL check
Browse files Browse the repository at this point in the history
This changes the NULL check to be using device_is_ready().

Fixes #32946
CID #219494

Signed-off-by: Daniel Leung <[email protected]>
  • Loading branch information
dcpleung authored and nashif committed Mar 8, 2021
1 parent 14b733a commit 72dfb34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boards/xtensa/intel_s1000_crb/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 72dfb34

Please sign in to comment.