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

Commit 6f8c4f22 authored by Richard Weinberger's avatar Richard Weinberger Committed by Ian Maund
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>
Git-commit: e1bc37ceafc04dff20a8cdc88ed250941ec2ea92
Git-repo: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git


Signed-off-by: default avatarNikhilesh Reddy <reddyn@codeaurora.org>
parent f787e731
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.