ALSA: Deletion of checks before the function call "iounmap"
The iounmap() function performs also input parameter validation. Thus the test around the call is not needed. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:

کامیت شده توسط
Takashi Iwai

والد
b76c0e95ab
کامیت
ff6defa6a8
@@ -2246,8 +2246,7 @@ static int snd_ymfpci_free(struct snd_ymfpci *chip)
|
||||
release_and_free_resource(chip->mpu_res);
|
||||
release_and_free_resource(chip->fm_res);
|
||||
snd_ymfpci_free_gameport(chip);
|
||||
if (chip->reg_area_virt)
|
||||
iounmap(chip->reg_area_virt);
|
||||
iounmap(chip->reg_area_virt);
|
||||
if (chip->work_ptr.area)
|
||||
snd_dma_free_pages(&chip->work_ptr);
|
||||
|
||||
|
مرجع در شماره جدید
Block a user