Message ID | 1319732672-29071-3-git-send-email-sjg@chromium.org |
---|---|
State | Accepted, archived |
Commit | 165099e753aeb3a734edbdad887f964277d11ab8 |
Headers | show |
Acked-by: Mike Frysinger <vapier@gentoo.org>
-mike
Dear Simon Glass, In message <1319732672-29071-3-git-send-email-sjg@chromium.org> you wrote: > This should be a static function so it can be inlined. > > Signed-off-by: Simon Glass <sjg@chromium.org> > --- > Changes in v2: > - Add net_transfer() fix > > net/tftp.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied, thanks. Best regards, Wolfgang Denk
diff --git a/net/tftp.c b/net/tftp.c index e34f202..81f9af4 100644 --- a/net/tftp.c +++ b/net/tftp.c @@ -198,7 +198,7 @@ store_block(unsigned block, uchar *src, unsigned len) } /* Clear our state ready for a new transfer */ -void new_transfer(void) +static void new_transfer(void) { TftpLastBlock = 0; TftpBlockWrap = 0;
This should be a static function so it can be inlined. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: - Add net_transfer() fix net/tftp.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)