summaryrefslogtreecommitdiff
path: root/gusb/gusb-device-event.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2023-02-03 13:16:03 +0000
committerRichard Hughes <richard@hughsie.com>2023-02-03 13:27:03 +0000
commit0b239a87c92ba92010e1fa390df65175edf566be (patch)
tree43143bc1a119479e0a3f6f2f221ff85c0ac90f73 /gusb/gusb-device-event.c
parent9418531f0c8304669027a63495d4e1f079b9c0e6 (diff)
downloadgusb-0b239a87c92ba92010e1fa390df65175edf566be.tar.gz
Record zero-sized device events
These are used for DFU reset operations.
Diffstat (limited to 'gusb/gusb-device-event.c')
-rw-r--r--gusb/gusb-device-event.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gusb/gusb-device-event.c b/gusb/gusb-device-event.c
index 648dbe2..a991971 100644
--- a/gusb/gusb-device-event.c
+++ b/gusb/gusb-device-event.c
@@ -260,7 +260,6 @@ _g_usb_device_event_set_bytes_raw(GUsbDeviceEvent *self, gconstpointer buf, gsiz
{
g_return_if_fail(G_USB_IS_DEVICE_EVENT(self));
g_return_if_fail(buf != NULL);
- g_return_if_fail(bufsz > 0);
if (self->bytes != NULL)
g_bytes_unref(self->bytes);
self->bytes = g_bytes_new(buf, bufsz);