X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=fs%2Fext2%2Fext2fs.c;h=436f4a4aa92a0f7eaef694743c172b4f8c2482e3;hb=4b530018764934ad5689196e9aa5714a6f4d1a6c;hp=9cf2fb7ba494499a1afe38a63f6c6fb378895cf1;hpb=f6e5739a68131998a5ae8aa0cf56a0316f810200;p=u-boot diff --git a/fs/ext2/ext2fs.c b/fs/ext2/ext2fs.c index 9cf2fb7ba4..436f4a4aa9 100644 --- a/fs/ext2/ext2fs.c +++ b/fs/ext2/ext2fs.c @@ -24,8 +24,6 @@ */ #include - -#if (CONFIG_COMMANDS & CFG_CMD_EXT2) #include #include #include @@ -436,7 +434,7 @@ int ext2fs_read_file return (-1); } } else { - memset (buf, blocksize - skipfirst, 0); + memset (buf, 0, blocksize - skipfirst); } buf += blocksize - skipfirst; } @@ -874,5 +872,3 @@ fail: ext2fs_root = NULL; return (0); } - -#endif /* CFG_CMD_EXT2FS */