From: Konrad Rzeszutek Wilk Date: Fri, 22 Jul 2011 18:00:06 +0000 (-0400) Subject: xen/grant: Fix compile warning. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=272800dc4fc10190604e4f8ee8898e9810f358ba;p=linux-beck.git xen/grant: Fix compile warning. drivers/xen/grant-table.c:85: warning: ‘rc’ may be used uninitialized in this function Signed-off-by: Konrad Rzeszutek Wilk --- diff --git a/drivers/xen/grant-table.c b/drivers/xen/grant-table.c index fd725cde6ad1..4f44b347b24a 100644 --- a/drivers/xen/grant-table.c +++ b/drivers/xen/grant-table.c @@ -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);