Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=410ab512e5c5716287a399145df0905c1dcddb04
Commit:     410ab512e5c5716287a399145df0905c1dcddb04
Parent:     965e7c8affeca27f7e5de75c97954e74d3b8052d
Author:     Aron Griffis <[EMAIL PROTECTED]>
AuthorDate: Tue Jan 8 22:29:38 2008 -0500
Committer:  Tony Luck <[EMAIL PROTECTED]>
CommitDate: Mon Feb 4 15:35:06 2008 -0800

    [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: Aron Griffis <[EMAIL PROTECTED]>
    Signed-off-by: Tony Luck <[EMAIL PROTECTED]>
---
 arch/ia64/kernel/efi.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/ia64/kernel/efi.c b/arch/ia64/kernel/efi.c
index 269f4f4..d59134d 100644
--- a/arch/ia64/kernel/efi.c
+++ b/arch/ia64/kernel/efi.c
@@ -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);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to