mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
init: add an init_unlink helper
Add a simple helper to unlink with a kernel space file name and switch the early init code over to it. Remove the now unused ksys_unlink. Signed-off-by: Christoph Hellwig <hch@lst.de>
This commit is contained in:
@@ -137,11 +137,11 @@ bool __init initrd_load(void)
|
||||
* mounted in the normal path.
|
||||
*/
|
||||
if (rd_load_image("/initrd.image") && ROOT_DEV != Root_RAM0) {
|
||||
ksys_unlink("/initrd.image");
|
||||
init_unlink("/initrd.image");
|
||||
handle_initrd();
|
||||
return true;
|
||||
}
|
||||
}
|
||||
ksys_unlink("/initrd.image");
|
||||
init_unlink("/initrd.image");
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user