[syslinux:pathbased] btrfs: get rid of unnecessary _fs variable
syslinux-bot for H. Peter Anvin
hpa at zytor.com
Tue Mar 2 19:15:02 PST 2010
Commit-ID: 704abd01392cebdfd811519d26ea3a4be5cfeab3
Gitweb: http://syslinux.zytor.com/commit/704abd01392cebdfd811519d26ea3a4be5cfeab3
Author: H. Peter Anvin <hpa at zytor.com>
AuthorDate: Tue, 2 Mar 2010 19:11:45 -0800
Committer: H. Peter Anvin <hpa at zytor.com>
CommitDate: Tue, 2 Mar 2010 19:11:45 -0800
btrfs: get rid of unnecessary _fs variable
Get rid of the unnecessary _fs variable in btrfs_fs_init(). The
compiler would have optimized it out anyway, but it's cleaner if it's
in the source.
Signed-off-by: H. Peter Anvin <hpa at zytor.com>
---
core/fs/btrfs/btrfs.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/core/fs/btrfs/btrfs.c b/core/fs/btrfs/btrfs.c
index 04633f4..c4021ac 100644
--- a/core/fs/btrfs/btrfs.c
+++ b/core/fs/btrfs/btrfs.c
@@ -625,12 +625,9 @@ static void btrfs_get_fs_tree(void)
}
/* init. the fs meta data, return the block size shift bits. */
-static int btrfs_fs_init(struct fs_info *_fs)
+static int btrfs_fs_init(struct fs_info *fs)
{
- struct disk *disk;
-
- fs = _fs;
- disk = fs->fs_dev->disk;
+ struct disk *disk = fs->fs_dev->disk;
btrfs_init_crc32c();
More information about the Syslinux-commits
mailing list