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:
Pedro F. Giffuni 2016-05-16 20:04:38 +00:00
parent 98b6ade62d
commit 63aa6c0cd9

View File

@ -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);