onyx: Remove unreachable if condition

Both conditions are the same, so the second one is unreachable.

PR:		229550
Sponsored by:	The FreeBSD Foundation
MFC after:	2 days
Reviewed by:	andreast, markj
Differential Revision:	https://reviews.freebsd.org/D47167

(cherry picked from commit 6f96ef84b359137a51dc1e717887ca7d31ba7bad)
This commit is contained in:
Christos Margiolis 2024-10-18 10:41:55 +02:00
parent 4f11a53123
commit e609dfa98f

View file

@ -197,7 +197,6 @@ onyx_probe(device_t dev)
if (strcmp(name, "codec") == 0) {
if (iicbus_get_addr(dev) != PCM3052_IICADDR)
return (ENXIO);
} else if (strcmp(name, "codec") == 0) {
compat = ofw_bus_get_compat(dev);
if (compat == NULL || strcmp(compat, "pcm3052") != 0)
return (ENXIO);