/* next_log_lnum - switch to the next log LEB.  */
static int next_log_lnum(const struct ubifs_info *c, int lnum)
/* next_log_lnum - switch to the next log LEB.  */
static int next_log_lnum(const struct ubifs_info *c, int lnum)
{
	lnum += 1;
	if (lnum > c->log_last)
		lnum = UBIFS_LOG_LNUM;
	return lnum;
}