summaryrefslogtreecommitdiffstats
path: root/lib/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/misc.c')
-rw-r--r--lib/misc.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/lib/misc.c b/lib/misc.c
index 5a7a72cd58..5ba9a0bbfa 100644
--- a/lib/misc.c
+++ b/lib/misc.c
@@ -1,36 +1,8 @@
#include <common.h>
-#include <command.h>
-#include <driver.h>
-#include <init.h>
#include <malloc.h>
-#include <linux/ctype.h>
#include <errno.h>
#include <fs.h>
-#include <net.h>
-
-int cmd_get_data_size(char* arg, int default_size)
-{
- /* Check for a size specification .b, .w or .l.
- */
- int len = strlen(arg);
- if (len > 2 && arg[len-2] == '.') {
- switch(arg[len-1]) {
- case 'b':
- return 1;
- case 'w':
- return 2;
- case 'l':
- return 4;
- case 's':
- return -2;
- default:
- return -1;
- }
- }
- return default_size;
-}
-
unsigned long strtoul_suffix(const char *str, char **endp, int base)
{