Thread (13 messages) 13 messages, 6 authors, 2020-12-10

Re: [PATCH 1/2] ALSA: ppc: drop if block with always false condition

From: Geert Uytterhoeven <geert@linux-m68k.org>
Date: 2020-11-27 08:36:08
Also in: alsa-devel, dri-devel, linux-block, linux-fbdev, linux-scsi, linux-usb, linuxppc-dev

Hi Uwe,

On Thu, Nov 26, 2020 at 6:03 PM Uwe Kleine-König
[off-list ref] wrote:
The remove callback is only called for devices that were probed
successfully before. As the matching probe function cannot complete
without error if dev->match_id != PS3_MATCH_ID_SOUND, we don't have to
check this here.

Signed-off-by: Uwe Kleine-König <redacted>
Thanks for your patch!

Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>

Note that there are similar checks in snd_ps3_driver_probe(), which
can be removed, too:

        if (WARN_ON(!firmware_has_feature(FW_FEATURE_PS3_LV1)))
                return -ENODEV;
        if (WARN_ON(dev->match_id != PS3_MATCH_ID_SOUND))
                return -ENODEV;

Gr{oetje,eeting}s,

                        Geert

-- 
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help