mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
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 6f96ef84b3)
This commit is contained in:
parent
4f11a53123
commit
e609dfa98f
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue