staging: mt7621-mmc: Refactor msdc_init_gpd_bd
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Wed, 18 Apr 2018 15:27:41 +0000 (17:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 23 Apr 2018 13:37:54 +0000 (15:37 +0200)
commit8f2395586cf0dc74af01c2b232e6f4c539b9164d
tree094cbf41da2c1993f78ef29afe37a9a0af150de1
parent134cca657d8e04e80a1db988faf485c8cfcef0a6
staging: mt7621-mmc: Refactor msdc_init_gpd_bd

The msdc_init_gpd_bd function is currently hard to read, because of
old, commented out code and a while loop, where a for loop is much
easier to read. Refactor it to make the code more readable.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/sd.c