/* compute root r of a degree 1 polynomial over GF(2^m) (returned as log(1/r))  */
static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots)
/* compute root r of a degree 1 polynomial over GF(2^m) (returned as log(1/r))  */
static int find_poly_deg1_roots(struct bch_control *bch, struct gf_poly *poly, unsigned int *roots)
{
	int n = 0;
	if (poly->c[0])
		roots[n++] = mod_s(bch, GF_N(bch)-bch->a_log_tab[poly->c[0]]+
				   bch->a_log_tab[poly->c[1]]);
	return n;
}