Print this page
10703 smatch unreachable code checking needs reworking
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com>

@@ -18,10 +18,11 @@
  *
  * CDDL HEADER END
  */
 /*
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
+ * Copyright 2019 Joyent, Inc.
  */
 
 #include <sys/mutex.h>
 #include <sys/debug.h>
 #include <sys/types.h>

@@ -2051,11 +2052,10 @@
                 break;
         default:
                 cmn_err(CE_PANIC, "contract_device_negotiate(): Negotiation "
                     "not supported: event (%d) for dev_t (%lu) and spec (%d), "
                     "dip (%p)", evtype, dev, spec_type, (void *)dip);
-                result = CT_NACK;
                 break;
         }
 
         return (result);
 }