summaryrefslogtreecommitdiff
path: root/kexec/arch/arm/kexec-arm.c
diff options
context:
space:
mode:
authorMatt Evans <matt@ozlabs.org>2010-05-13 17:33:59 +1000
committerSimon Horman <horms@verge.net.au>2010-05-13 23:23:51 +0900
commit51234576b4ed8d4fcaf2ef1bbd625e050c592d15 (patch)
tree80c5099ebee7f8b9f00b38106f9108bde4fb308e /kexec/arch/arm/kexec-arm.c
parent6662d03f27ad1cf01f0b09b89f22e3e8eb3f097e (diff)
kexec-tools: remove unused code from arch_process_options (arm, cris, ia64, mips, ppc)
These architectures don't have any architecture-specific options (note: distinct from loader options, which are more specific), yet their arch_process_options() functions contain getopts_long() calls followed by no argument processing. The code doesn't do anything, so this patch removes it. Signed-off-by: Matt Evans <matt@ozlabs.org> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch/arm/kexec-arm.c')
-rw-r--r--kexec/arch/arm/kexec-arm.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/kexec/arch/arm/kexec-arm.c b/kexec/arch/arm/kexec-arm.c
index 06ed8fd..de3f713 100644
--- a/kexec/arch/arm/kexec-arm.c
+++ b/kexec/arch/arm/kexec-arm.c
@@ -88,23 +88,6 @@ void arch_usage(void)
int arch_process_options(int argc, char **argv)
{
- static const struct option options[] = {
- KEXEC_ARCH_OPTIONS
- { 0, 0, NULL, 0 },
- };
- static const char short_options[] = KEXEC_ARCH_OPT_STR;
- int opt;
-
- opterr = 0; /* Don't complain about unrecognized options here */
- while((opt = getopt_long(argc, argv, short_options, options, 0)) != -1) {
- switch(opt) {
- default:
- break;
- }
- }
- /* Reset getopt for the next pass; called in other source modules */
- opterr = 1;
- optind = 1;
return 0;
}