]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Remove unreachable return statement
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 31 May 2019 11:46:57 +0000 (12:46 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 31 May 2019 11:48:28 +0000 (12:48 +0100)
It appears than the newer compilers are happy that a return statement after
a BUG() is actually unreachable, and some compilers will actually warn to
that effect, so just blow it away.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/cache.c

index 688c3d9be7e76d02ba3add93b9b20f558d21cfcb..7daf8dad031a2a1647eb00677325e13945641877 100644 (file)
@@ -373,7 +373,6 @@ __CacheMaskScan(
     }
 
     BUG("CACHE SCAN FAILED");
-    return ~0u;
 }
 
 static FORCEINLINE VOID