aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-07-22 14:00:06 -0400
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2011-08-03 14:34:53 -0400
commitf24144c0c397fe3697b5b563c4a86d4f1fb185cc (patch)
tree2893310323f8227de85eea4a2027ee075014473d
parent27a26b775ab89ff65d307de180e466d4c1215186 (diff)
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 <konrad.wilk@oracle.com>
-rw-r--r--drivers/xen/grant-table.c2
1 files changed, 1 insertions, 1 deletions
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)
82static int get_free_entries(unsigned count) 82static int get_free_entries(unsigned count)
83{ 83{
84 unsigned long flags; 84 unsigned long flags;
85 int ref, rc; 85 int ref, rc = 0;
86 grant_ref_t head; 86 grant_ref_t head;
87 87
88 spin_lock_irqsave(&gnttab_list_lock, flags); 88 spin_lock_irqsave(&gnttab_list_lock, flags);