Commit 272800dc4fc10190604e4f8ee8898e9810f358ba

Authored by Konrad Rzeszutek Wilk
1 parent f45c078cdc

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/xen/grant-table.c
... ... @@ -82,7 +82,7 @@
82 82 static int get_free_entries(unsigned count)
83 83 {
84 84 unsigned long flags;
85   - int ref, rc;
  85 + int ref, rc = 0;
86 86 grant_ref_t head;
87 87  
88 88 spin_lock_irqsave(&gnttab_list_lock, flags);