[PATCH openEuler-5.10 517/557] can: mcp251xfd: mcp251xfd_register_get_dev_id(): fix return of error value