ALSA: emu10k1_patch: Use swap macro in snd_emu10k1_sample_new
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Tue, 17 Jul 2018 15:00:43 +0000 (10:00 -0500)
committerTakashi Iwai <tiwai@suse.de>
Tue, 17 Jul 2018 15:17:52 +0000 (17:17 +0200)
commite2d2f240497c63a157f897c87567b93ed43a2213
tree73587ddc194ade386ca198698a498e9022c6ca06
parentb6d7b3622b6e7685767a616bb663aed40d04fdc6
ALSA: emu10k1_patch: Use swap macro in snd_emu10k1_sample_new

Make use of the swap macro and remove unnecessary variable *tmp*. This
makes the code easier to read and maintain.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emu10k1_patch.c