canopen: CO_driver: Fix Coverity issues (NULL deref, dead code)
canopen: CO_driver: Fix Coverity issues (NULL deref, dead code)

There were two dereference after NULL check and logical dead code.

Fixes #22434
Fixes #22443
Fixes #22435
Coverity-CID: 207978
Coverity-CID: 207977
Coverity-CID: 207964

Signed-off-by: Alexander Wachter <e46fc836cca3acec03944314d1457c2ae6c68ef3@wachter.cloud>

nashif/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,Vudentz/zephyr,zephyrproject-rtos/zephyr,Vudentz/zephyr,finikorg/zephyr,galak/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,Vudentz/zephyr,nashif/zephyr,galak/zephyr,Vudentz/zephyr,finikorg/zephyr,galak/zephyr,galak/zephyr,nashif/zephyr,zephyrproject-rtos/zephyr,finikorg/zephyr,galak/zephyr