Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e1bc37ce authored by Richard Weinberger's avatar Richard Weinberger
Browse files

UBI: Fastmap: Remove else after return.



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

Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 2f84c246
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -260,11 +260,11 @@ 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];
}
}

/**
 * ubi_ensure_anchor_pebs - schedule wear-leveling to produce an anchor PEB.