From a11d6efc580bb8cb15d607c213889ad1b049aa4d Mon Sep 17 00:00:00 2001 From: Richard Hughes Date: Mon, 16 Nov 2015 13:02:18 +0000 Subject: [PATCH] trivial: Get rid of warning in dmesg when downloading firmware --- libdfu/dfu-device.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libdfu/dfu-device.c b/libdfu/dfu-device.c index ffee8e930..0c2b3340e 100644 --- a/libdfu/dfu-device.c +++ b/libdfu/dfu-device.c @@ -800,6 +800,9 @@ dfu_device_download (DfuDevice *device, return FALSE; if (flags & DFU_TARGET_TRANSFER_FLAG_VERIFY) flags_local = DFU_TARGET_TRANSFER_FLAG_VERIFY; + if (!dfu_target_open (target_tmp, DFU_TARGET_OPEN_FLAG_NONE, + cancellable, error)) + return FALSE; if (!dfu_target_download (target_tmp, image, flags_local,