X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=fs%2Freiserfs%2Freiserfs.c;h=1d6fa083cea55d7338dbfbe5ba4f05b454114c1c;hb=e2b70325246f4ea959e883f4caa9e59fb029127d;hp=aa96361638e9320456d4ac0063108eaab0f753c4;hpb=f40a7f3e3888b42a43674b099e5470022c8c544c;p=u-boot diff --git a/fs/reiserfs/reiserfs.c b/fs/reiserfs/reiserfs.c index aa96361638..1d6fa083ce 100644 --- a/fs/reiserfs/reiserfs.c +++ b/fs/reiserfs/reiserfs.c @@ -8,19 +8,7 @@ * Sysgo AG, , Pavel Bartusek * * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + * SPDX-License-Identifier: GPL-2.0+ */ /* An implementation for the ReiserFS filesystem ported from GRUB. @@ -29,8 +17,6 @@ */ #include -#if defined(CONFIG_CMD_REISER) - #include #include #include @@ -284,6 +270,7 @@ reiserfs_mount (unsigned part_length) { struct reiserfs_super_block super; int superblock = REISERFS_DISK_OFFSET_IN_BYTES >> SECTOR_BITS; + char *cache; if (part_length < superblock + (sizeof (super) >> SECTOR_BITS) || ! reiserfs_devread (superblock, 0, sizeof (struct reiserfs_super_block), @@ -359,7 +346,8 @@ reiserfs_mount (unsigned part_length) if (! block_read (sb_root_block(&super), 0, INFO->blocksize, (char*) ROOT)) return 0; - INFO->tree_depth = __le16_to_cpu(BLOCKHEAD (ROOT)->blk_level); + cache = ROOT; + INFO->tree_depth = __le16_to_cpu(BLOCKHEAD (cache)->blk_level); #ifdef REISERDEBUG printf ("root read_in: block=%d, depth=%d\n", @@ -982,5 +970,3 @@ reiserfs_open (char *filename) } return filemax; } - -#endif