]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - board/hymod/fetch.c
* Patch by Andreas Oberritter, 09 Nov 2002:
[karo-tx-uboot.git] / board / hymod / fetch.c
index 1511b085820a6014164272bfdfceb2603f54eb50..dcbda3174afd58bcf9bda25663d753131c5efed9 100644 (file)
@@ -89,7 +89,7 @@ fetch_and_parse(bd_t *bd, char *fn, ulong addr, int (*cback)(uchar *, uchar *))
     copy_filename(BootFile, fn, sizeof (BootFile));
     load_addr = addr;
 
-    if (NetLoop(TFTP) == 0) {
+    if (NetLoop(TFTP) <= 0) {
        printf("tftp transfer of file '%s' failed\n", fn);
        return (0);
     }