mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 12:54:37 +00:00
net: tftp: remove TFTP_MTU_BLOCKSIZE
Remove the unneeded define TFTP_MTU_BLOCKSIZE.
Since the KConfig migration done by commit b618b37076
("net:
Convert CONFIG_TFTP_BLOCKSIZE to Kconfig"), CONFIG_TFTP_BLOCKSIZE
is always defined and can be used directly to avoid confusion
(fallback to 1468 in code is never used).
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
This commit is contained in:
parent
421de7fec8
commit
31d275b095
1 changed files with 1 additions and 6 deletions
|
@ -133,14 +133,9 @@ static char tftp_filename[MAX_LEN];
|
||||||
* almost-MTU block sizes. At least try... fall back to 512 if need be.
|
* almost-MTU block sizes. At least try... fall back to 512 if need be.
|
||||||
* (but those using CONFIG_IP_DEFRAG may want to set a larger block in cfg file)
|
* (but those using CONFIG_IP_DEFRAG may want to set a larger block in cfg file)
|
||||||
*/
|
*/
|
||||||
#ifdef CONFIG_TFTP_BLOCKSIZE
|
|
||||||
#define TFTP_MTU_BLOCKSIZE CONFIG_TFTP_BLOCKSIZE
|
|
||||||
#else
|
|
||||||
#define TFTP_MTU_BLOCKSIZE 1468
|
|
||||||
#endif
|
|
||||||
|
|
||||||
static unsigned short tftp_block_size = TFTP_BLOCK_SIZE;
|
static unsigned short tftp_block_size = TFTP_BLOCK_SIZE;
|
||||||
static unsigned short tftp_block_size_option = TFTP_MTU_BLOCKSIZE;
|
static unsigned short tftp_block_size_option = CONFIG_TFTP_BLOCKSIZE;
|
||||||
|
|
||||||
static inline int store_block(int block, uchar *src, unsigned int len)
|
static inline int store_block(int block, uchar *src, unsigned int len)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue