Print this page
10114 fmev_proxy_cb() doesn't need inval checks
@@ -22,10 +22,14 @@
/*
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
*/
/*
+ * Copyright (c) 2018, Joyent, Inc.
+ */
+
+/*
* FMA event subscription interfaces - subscribe to FMA protocol
* from outside the fault manager.
*/
#include <sys/types.h>
@@ -203,11 +207,10 @@
/*
* Our door service function. We return 0 regardless so that the kernel
* does not keep either retrying (EAGAIN) or bleat to cmn_err.
*/
-uint64_t fmev_proxy_cb_inval;
uint64_t fmev_proxy_cb_enomem;
int
fmev_proxy_cb(sysevent_t *sep, void *arg)
{
@@ -215,15 +218,10 @@
fmev_shdl_impl_t *ihdl = sip->si_ihdl;
nvlist_t *nvl;
char *class;
fmev_t ev;
- if (sip == NULL || sip->si_cb == NULL) {
- fmev_proxy_cb_inval++;
- return (0);
- }
-
if ((ev = fmev_sysev2fmev(IHDL2HDL(ihdl), sep, &class, &nvl)) == NULL) {
fmev_proxy_cb_enomem++;
return (0);
}