summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel/initrd_user.c
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2005-05-28 15:51:57 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-28 16:46:12 -0700
commit7590d3ec1cda7d504c25103bde0c9911f93810e9 (patch)
treeca9861dbd05526415f839076618673bf49a155f9 /arch/um/kernel/initrd_user.c
parent92515da73a5df50db45111b8659ac463b4800236 (diff)
downloadblackbird-op-linux-7590d3ec1cda7d504c25103bde0c9911f93810e9.tar.gz
blackbird-op-linux-7590d3ec1cda7d504c25103bde0c9911f93810e9.zip
[PATCH] uml: remove unused code
This removes two now unused files and a couple of unused functions. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/kernel/initrd_user.c')
-rw-r--r--arch/um/kernel/initrd_user.c46
1 files changed, 0 insertions, 46 deletions
diff --git a/arch/um/kernel/initrd_user.c b/arch/um/kernel/initrd_user.c
deleted file mode 100644
index cb90681e151c..000000000000
--- a/arch/um/kernel/initrd_user.c
+++ /dev/null
@@ -1,46 +0,0 @@
-/*
- * Copyright (C) 2000, 2001 Jeff Dike (jdike@karaya.com)
- * Licensed under the GPL
- */
-
-#include <unistd.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <errno.h>
-
-#include "user_util.h"
-#include "kern_util.h"
-#include "user.h"
-#include "initrd.h"
-#include "os.h"
-
-int load_initrd(char *filename, void *buf, int size)
-{
- int fd, n;
-
- fd = os_open_file(filename, of_read(OPENFLAGS()), 0);
- if(fd < 0){
- printk("Opening '%s' failed - err = %d\n", filename, -fd);
- return(-1);
- }
- n = os_read_file(fd, buf, size);
- if(n != size){
- printk("Read of %d bytes from '%s' failed, err = %d\n", size,
- filename, -n);
- return(-1);
- }
-
- os_close_file(fd);
- return(0);
-}
-
-/*
- * Overrides for Emacs so that we follow Linus's tabbing style.
- * Emacs will notice this stuff at the end of the file and automatically
- * adjust the settings for this buffer only. This must remain at the end
- * of the file.
- * ---------------------------------------------------------------------------
- * Local variables:
- * c-file-style: "linux"
- * End:
- */
OpenPOWER on IntegriCloud