This comment is misleading now, as device does not set here and the error handling is outside of this function.