spi: mpc8xxx: Reduce scope of loop variables
authorMario Six <mario.six@gdsys.cc>
Sun, 28 Apr 2019 20:28:46 +0000 (01:58 +0530)
committerJagan Teki <jagan@amarulasolutions.com>
Mon, 10 Jun 2019 12:29:48 +0000 (17:59 +0530)
commit65f88e0408e8ddba827fb9ace1596591365f0b79
tree26f49600f4006cf498e53abab95eb8926f0f0346
parente4da4c2e0e3f4686c104e45a1967587423f04e04
spi: mpc8xxx: Reduce scope of loop variables

The transmission loop starts with setting some variables, which are only
used inside the loop. Reduce the scope to the loop to make the
declaration and initialization of these variables coincide.

In the case of char_size this also always initializes the variable
immediately with the final value actually used in the loop (instead of
the placeholder value 32).

Signed-off-by: Mario Six <mario.six@gdsys.cc>
Acked-by: Jagan Teki <jagan@amarulasolutions.com>
drivers/spi/mpc8xxx_spi.c