xv11_driver_node: some cleanup and optimizations