board-endeavoru-sensors: fix warning 'ret' is used uninitialized in this function