Skip to content

Commit

Permalink
xen/grant: Fix compile warning.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Konrad Rzeszutek Wilk committed Aug 3, 2011
1 parent 27a26b7 commit f24144c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/xen/grant-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit f24144c

Please sign in to comment.