xen/grant: Fix compile warning.
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 22 Jul 2011 18:00:06 +0000 (14:00 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Wed, 3 Aug 2011 18:34:53 +0000 (14:34 -0400)
drivers/xen/grant-table.c:85: warning: ‘rc’ may be used uninitialized in this function

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/grant-table.c

index fd725cde6ad174bc7048c2e6dd9aa268b061ae6d..4f44b347b24ab2e43a783f20a4c8232561ec120d 100644 (file)
@@ -82,7 +82,7 @@ static inline grant_ref_t *__gnttab_entry(grant_ref_t entry)
 static int get_free_entries(unsigned count)
 {
        unsigned long flags;
-       int ref, rc;
+       int ref, rc = 0;
        grant_ref_t head;
 
        spin_lock_irqsave(&gnttab_list_lock, flags);