Commit 81ddb200 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Greg Kroah-Hartman
Browse files

serial: sh-sci: Simplify multiplication/shift logic

parent aab68e95
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2293,7 +2293,7 @@ static int sci_scbrr_calc(struct sci_port *s, unsigned int bps,
	for_each_sr(sr, s) {
		for (c = 0; c <= 3; c++) {
			/* integerized formulas from HSCIF documentation */
			prediv = sr * (1 << (2 * c + 1));
			prediv = sr << (2 * c + 1);

			/*
			 * We need to calculate: