]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
net: fastboot: Fix build when FASTBOOT_FLASH is disabled
authorAlex Kiernan <alex.kiernan@gmail.com>
Fri, 15 Jun 2018 05:06:00 +0000 (05:06 +0000)
committerJoe Hershberger <joe.hershberger@ni.com>
Mon, 2 Jul 2018 19:14:20 +0000 (14:14 -0500)
When building without FASTBOOT_FLASH we don't include the intermediate
update callback to keep the client alive, so ensure we don't try setting
it here.

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
net/fastboot.c

index a9f7c0743da5c6726e4ef2c4123059156b89d0f4..8afc5529cd9624a00606978b9a8db67041905fe5 100644 (file)
@@ -309,7 +309,9 @@ void fastboot_start_server(void)
 
        fastboot_our_port = WELL_KNOWN_PORT;
 
+#if CONFIG_IS_ENABLED(FASTBOOT_FLASH)
        fastboot_set_progress_callback(fastboot_timed_send_info);
+#endif
        net_set_udp_handler(fastboot_handler);
 
        /* zero out server ether in case the server ip has changed */