From a5f301fb7a6aa68e3c4342394dfe591ec8eec2aa Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 17 Oct 2009 08:54:57 +0200 Subject: remove unused variable NetBootFileSize Signed-off-by: Sascha Hauer --- include/net.h | 1 - net/net.c | 1 - net/nfs.c | 5 ----- net/tftp.c | 5 ----- 4 files changed, 12 deletions(-) diff --git a/include/net.h b/include/net.h index 486e3ad907..7c47b2da02 100644 --- a/include/net.h +++ b/include/net.h @@ -260,7 +260,6 @@ extern IPaddr_t NetOurDNS2IP; /* Our 2nd Domain Name Server (0 = unknown)*/ extern char NetOurNISDomain[32]; /* Our NIS domain */ extern char NetOurHostName[32]; /* Our hostname */ extern char NetOurRootPath[64]; /* Our root path */ -extern ushort NetBootFileSize; /* Our boot file size in blocks */ /** END OF BOOTP EXTENTIONS **/ extern ulong NetBootFileXferSize; /* size of bootfile in bytes */ extern uchar NetOurEther[6]; /* Our ethernet address */ diff --git a/net/net.c b/net/net.c index db20add230..214685c5ef 100644 --- a/net/net.c +++ b/net/net.c @@ -101,7 +101,6 @@ IPaddr_t NetOurDNS2IP=0; /* Our 2nd DNS IP address */ char NetOurNISDomain[32]={0,}; /* Our NIS domain */ char NetOurHostName[32]={0,}; /* Our hostname */ char NetOurRootPath[64]={0,}; /* Our bootpath */ -ushort NetBootFileSize=0; /* Our bootfile size in blocks */ /** END OF BOOTP EXTENTIONS **/ diff --git a/net/nfs.c b/net/nfs.c index 87db551f13..775e5a2412 100644 --- a/net/nfs.c +++ b/net/nfs.c @@ -711,11 +711,6 @@ NfsStart (void) } printf ("\nFilename '%s/%s'.", nfs_path, nfs_filename); - if (NetBootFileSize) - printf (" Size is 0x%x Bytes = %s", - NetBootFileSize<<9, - size_human_readable (NetBootFileSize<<9)); - NetSetTimeout (NFS_TIMEOUT * SECOND, NfsTimeout); NetSetHandler (NfsHandler); diff --git a/net/tftp.c b/net/tftp.c index 7a5b8075ff..86ef0c3dd6 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -303,11 +303,6 @@ TftpStart (void) printf ("Filename '%s'.", tftp_filename); - if (NetBootFileSize) - printf (" Size is 0x%x Bytes = %s", - NetBootFileSize<<9, - size_human_readable(NetBootFileSize<<9)); - puts ("\nLoading: *\b"); NetSetTimeout (TIMEOUT * SECOND, TftpTimeout); -- cgit v1.2.3