mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
init: remove unused names parameter in split_fs_names()
The split_fs_names() function takes a names parameter, but the function actually uses the root_fs_names global variable instead. This names parameter is not used in the function, so it can be safely removed. This change does not affect the functionality of split_fs_names() or any other part of the kernel. Signed-off-by: Yihuan Pan <xun794@gmail.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Message-Id: <4lsiigvaw4lxcs37rlhgepv77xyxym6krkqcpc3xfncnswok3y@b67z3b44orar> Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
committed by
Christian Brauner
parent
820eb59da8
commit
26e293f73f
@@ -338,7 +338,7 @@ __setup("rootfstype=", fs_names_setup);
|
|||||||
__setup("rootdelay=", root_delay_setup);
|
__setup("rootdelay=", root_delay_setup);
|
||||||
|
|
||||||
/* This can return zero length strings. Caller should check */
|
/* This can return zero length strings. Caller should check */
|
||||||
static int __init split_fs_names(char *page, size_t size, char *names)
|
static int __init split_fs_names(char *page, size_t size)
|
||||||
{
|
{
|
||||||
int count = 1;
|
int count = 1;
|
||||||
char *p = page;
|
char *p = page;
|
||||||
@@ -402,7 +402,7 @@ void __init mount_block_root(char *name, int flags)
|
|||||||
scnprintf(b, BDEVNAME_SIZE, "unknown-block(%u,%u)",
|
scnprintf(b, BDEVNAME_SIZE, "unknown-block(%u,%u)",
|
||||||
MAJOR(ROOT_DEV), MINOR(ROOT_DEV));
|
MAJOR(ROOT_DEV), MINOR(ROOT_DEV));
|
||||||
if (root_fs_names)
|
if (root_fs_names)
|
||||||
num_fs = split_fs_names(fs_names, PAGE_SIZE, root_fs_names);
|
num_fs = split_fs_names(fs_names, PAGE_SIZE);
|
||||||
else
|
else
|
||||||
num_fs = list_bdev_fs_names(fs_names, PAGE_SIZE);
|
num_fs = list_bdev_fs_names(fs_names, PAGE_SIZE);
|
||||||
retry:
|
retry:
|
||||||
@@ -545,7 +545,7 @@ static int __init mount_nodev_root(void)
|
|||||||
fs_names = (void *)__get_free_page(GFP_KERNEL);
|
fs_names = (void *)__get_free_page(GFP_KERNEL);
|
||||||
if (!fs_names)
|
if (!fs_names)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
num_fs = split_fs_names(fs_names, PAGE_SIZE, root_fs_names);
|
num_fs = split_fs_names(fs_names, PAGE_SIZE);
|
||||||
|
|
||||||
for (i = 0, fstype = fs_names; i < num_fs;
|
for (i = 0, fstype = fs_names; i < num_fs;
|
||||||
i++, fstype += strlen(fstype) + 1) {
|
i++, fstype += strlen(fstype) + 1) {
|
||||||
|
Reference in New Issue
Block a user