]> git.ipfire.org Git - thirdparty/kernel/stable.git/blobdiff - sound/isa/sb/sb8.c
Merge tag 'asoc-fix-v5.13-rc7' of https://git.kernel.org/pub/scm/linux/kernel/git...
[thirdparty/kernel/stable.git] / sound / isa / sb / sb8.c
index de68ac5df35bd302f56d287fb5b02fad8dd3b2a3..b08e6e7690c9b8aad311fb6c5f670cda0df2aa92 100644 (file)
@@ -93,12 +93,12 @@ static int snd_sb8_probe(struct device *pdev, unsigned int dev)
        acard = card->private_data;
        card->private_free = snd_sb8_free;
 
-       /* block the 0x388 port to avoid PnP conflicts */
+       /*
+        * Block the 0x388 port to avoid PnP conflicts.
+        * No need to check this value after request_region,
+        * as we never do anything with it.
+        */
        acard->fm_res = request_region(0x388, 4, "SoundBlaster FM");
-       if (!acard->fm_res) {
-               err = -EBUSY;
-               goto _err;
-       }
 
        if (port[dev] != SNDRV_AUTO_PORT) {
                err = snd_sbdsp_create(card, port[dev], irq[dev],