aboutsummaryrefslogtreecommitdiff
path: root/chardev/char.c
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-12-12 14:43:10 +0300
committerMarc-André Lureau <marcandre.lureau@redhat.com>2017-01-31 23:31:20 +0400
commit247c92af2beaee26ad8fe5fd7cd04220681f156e (patch)
tree9a12efc7ca642900896af9cf5b5137c6400bf390 /chardev/char.c
parenteb314a9497dbbbd14795a6cdba27eb3131ee7e25 (diff)
char: move null chardev to its own file
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'chardev/char.c')
-rw-r--r--chardev/char.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/chardev/char.c b/chardev/char.c
index ee6ceb3471..2ca6c7cf67 100644
--- a/chardev/char.c
+++ b/chardev/char.c
@@ -560,28 +560,6 @@ static const TypeInfo char_type_info = {
.class_init = char_class_init,
};
-static void null_chr_open(Chardev *chr,
- ChardevBackend *backend,
- bool *be_opened,
- Error **errp)
-{
- *be_opened = false;
-}
-
-static void char_null_class_init(ObjectClass *oc, void *data)
-{
- ChardevClass *cc = CHARDEV_CLASS(oc);
-
- cc->open = null_chr_open;
-}
-
-static const TypeInfo char_null_type_info = {
- .name = TYPE_CHARDEV_NULL,
- .parent = TYPE_CHARDEV,
- .instance_size = sizeof(Chardev),
- .class_init = char_null_class_init,
-};
-
/* MUX driver for serial I/O splitting */
#define MAX_MUX 4
#define MUX_BUFFER_SIZE 32 /* Must be a power of 2. */
@@ -5105,7 +5083,6 @@ static void register_types(void)
type_register_static(&char_win_type_info);
type_register_static(&char_win_stdio_type_info);
#endif
- type_register_static(&char_null_type_info);
type_register_static(&char_socket_type_info);
type_register_static(&char_udp_type_info);
type_register_static(&char_ringbuf_type_info);