UBI: Fastmap: Remove else after return.

checkpatch.pl complains:
WARNING: else is not generally useful after a break or return

Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
Richard Weinberger 2014-10-29 11:44:45 +01:00
parent 2f84c2469e
commit e1bc37ceaf

View file

@ -260,10 +260,10 @@ static struct ubi_wl_entry *get_peb_for_wl(struct ubi_device *ubi)
schedule_work(&ubi->fm_work);
}
return NULL;
} else {
pnum = pool->pebs[pool->used++];
return ubi->lookuptbl[pnum];
}
pnum = pool->pebs[pool->used++];
return ubi->lookuptbl[pnum];
}
/**