From 63aa6c0cd9bc0e1ed1d7876987ed0a106a8f876b Mon Sep 17 00:00:00 2001 From: "Pedro F. Giffuni" Date: Mon, 16 May 2016 20:04:38 +0000 Subject: [PATCH] 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 --- sys/dev/ow/ow.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/ow/ow.c b/sys/dev/ow/ow.c index f5b5c6b980a..09236f0cd84 100644 --- a/sys/dev/ow/ow.c +++ b/sys/dev/ow/ow.c @@ -401,6 +401,8 @@ again: if (++retries > 5) return (EIO); goto again; + default: /* NOTREACHED */ + __unreachable(); } if (dir) { OWLL_WRITE_ONE(lldev, &timing_regular);