btrfs: cleanup unnecessary string dup in btrfs_parse_options()
authorMisono, Tomohiro <misono.tomohiro@jp.fujitsu.com>
Thu, 14 Dec 2017 08:28:00 +0000 (17:28 +0900)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:19 +0000 (16:08 +0100)
commite215772cd2abcf33adad8857c0f5a8214a6e7d22
treef37e671a09c5558edff560771c682089cf5f87af
parent203e02d934ed0570551b87c8d0a0a9cf917487cb
btrfs: cleanup unnecessary string dup in btrfs_parse_options()

Long ago, commit edf24abe51493 ("btrfs: sanity mount option parsing and
early mount code") split the btrfs_parse_options() into two parts
(btrfs_parse_early_options() and btrfs_parse_options()). As a result,
btrfs_parse_optins no longer gets called twice and is the last one to
parse mount option string. Therefore there is no need to dup it.

Signed-off-by: Tomohiro Misono <misono.tomohiro@jp.fujitsu.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/super.c