We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f54c9 commit 40ec42eCopy full SHA for 40ec42e
drivers/can/can_rcar.c
@@ -1023,11 +1023,9 @@ static int can_rcar_init(const struct device *dev)
1023
data->common.state_change_cb = NULL;
1024
data->common.state_change_cb_user_data = NULL;
1025
1026
- if (config->common.phy != NULL) {
1027
- if (!device_is_ready(config->common.phy)) {
1028
- LOG_ERR("CAN transceiver not ready");
1029
- return -ENODEV;
1030
- }
+ if (config->common.phy != NULL && !device_is_ready(config->common.phy)) {
+ LOG_ERR("CAN transceiver not ready");
+ return -ENODEV;
1031
}
1032
1033
if (!device_is_ready(config->clock_dev)) {
0 commit comments