Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 410ab512 authored by Aron Griffis's avatar Aron Griffis Committed by Tony Luck
Browse files

[IA64] efi.c Add /* never reached */ annotation



As written, this loop could be for (;;) instead of do while (md).  The tests
inside the loop always result in a return so the loop never terminates normally.

Signed-off-by: default avatarAron Griffis <aron@hp.com>
Signed-off-by: default avatarTony Luck <tony.luck@intel.com>
parent 965e7c8a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -762,7 +762,7 @@ efi_mem_attribute (unsigned long phys_addr, unsigned long size)
		if (!md || (md->attribute & ~EFI_MEMORY_RUNTIME) != attr)
			return 0;
	} while (md);
	return 0;
	return 0;	/* never reached */
}

u64
@@ -798,7 +798,7 @@ kern_mem_attribute (unsigned long phys_addr, unsigned long size)
		if (!md || md->attribute != attr)
			return 0;
	} while (md);
	return 0;
	return 0;	/* never reached */
}
EXPORT_SYMBOL(kern_mem_attribute);