dev/ow: Tag an unreachable switch default.
Coverity reports an uninitialized "dir" in case the switch defaults without hitting any case. Respect the original intent and quell the false positive with the relatively new __unreachable() builtin. CID: 1331566
This commit is contained in:
parent
98b6ade62d
commit
63aa6c0cd9
@ -401,6 +401,8 @@ ow_enumerate(device_t dev, ow_enum_fn *enumfp, ow_found_fn *foundfp)
|
||||
if (++retries > 5)
|
||||
return (EIO);
|
||||
goto again;
|
||||
default: /* NOTREACHED */
|
||||
__unreachable();
|
||||
}
|
||||
if (dir) {
|
||||
OWLL_WRITE_ONE(lldev, &timing_regular);
|
||||
|
Loading…
Reference in New Issue
Block a user