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>
This commit is contained in:
Konrad Rzeszutek Wilk 2011-07-22 14:00:06 -04:00
parent f45c078cdc
commit 272800dc4f
1 changed files with 1 additions and 1 deletions

View File

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