Revert "Update mdp.c"

This reverts commit aeb46588c1a2db9df51d56a200102338d8e49580.