[IA64] Fix wrong use of memparse in efi.c

The check of (end != cp) after memparse in efi.c looks wrong to me.
The result is that we can't use mem= and max_addr= kernel parameter at
the same time.

The following patch removed the check just like other arches do.

Signed-off-by: Zou Nan hai <nanhai.zou@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>

authored by Zou Nan hai and committed by Tony Luck 9d78f43d ecdd5dab

+3 -11
+3 -11
arch/ia64/kernel/efi.c
··· 410 efi_config_table_t *config_tables; 411 efi_char16_t *c16; 412 u64 efi_desc_size; 413 - char *cp, *end, vendor[100] = "unknown"; 414 extern char saved_command_line[]; 415 int i; 416 417 /* it's too early to be able to use the standard kernel command line support... */ 418 for (cp = saved_command_line; *cp; ) { 419 if (memcmp(cp, "mem=", 4) == 0) { 420 - cp += 4; 421 - mem_limit = memparse(cp, &end); 422 - if (end != cp) 423 - break; 424 - cp = end; 425 } else if (memcmp(cp, "max_addr=", 9) == 0) { 426 - cp += 9; 427 - max_addr = GRANULEROUNDDOWN(memparse(cp, &end)); 428 - if (end != cp) 429 - break; 430 - cp = end; 431 } else { 432 while (*cp != ' ' && *cp) 433 ++cp;
··· 410 efi_config_table_t *config_tables; 411 efi_char16_t *c16; 412 u64 efi_desc_size; 413 + char *cp, vendor[100] = "unknown"; 414 extern char saved_command_line[]; 415 int i; 416 417 /* it's too early to be able to use the standard kernel command line support... */ 418 for (cp = saved_command_line; *cp; ) { 419 if (memcmp(cp, "mem=", 4) == 0) { 420 + mem_limit = memparse(cp + 4, &cp); 421 } else if (memcmp(cp, "max_addr=", 9) == 0) { 422 + max_addr = GRANULEROUNDDOWN(memparse(cp + 9, &cp)); 423 } else { 424 while (*cp != ' ' && *cp) 425 ++cp;