[PATCH] kexec-tools: remove unused code from arch_process_options (arm, cris, ia64, mips, ppc)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matt Evans wrote:
> 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 at ozlabs.org>
> ---
>  kexec/arch/arm/kexec-arm.c   |   17 -----------------
>  kexec/arch/cris/kexec-cris.c |   17 -----------------
>  kexec/arch/ia64/kexec-ia64.c |   21 +++------------------
>  kexec/arch/mips/kexec-mips.c |   17 -----------------
>  kexec/arch/ppc/kexec-ppc.c   |   17 -----------------
>  5 files changed, 3 insertions(+), 86 deletions(-)

I forgot to add that unfortunately I have only been able to compile this patch on ppc.  Since the code carefully removed doesn't have any effect I am hopeful for the rest...  :-)


Cheers,


Matt




[Index of Archives]     [LM Sensors]     [Linux Sound]     [ALSA Users]     [ALSA Devel]     [Linux Audio Users]     [Linux Media]     [Kernel]     [Gimp]     [Yosemite News]     [Linux Media]

  Powered by Linux