diff options
author | John Levon <john.levon@joyent.com> | 2018-12-19 17:32:09 +0000 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2019-02-01 19:02:35 +0000 |
commit | 0627591eb8261c55a48bc3b17ff3dfe0d0568939 (patch) | |
tree | 86669ee38d21b7b44d4e38ec200cfaf19bb27c58 /usr/src | |
parent | f1c3c46914bb8b71335ee0d065b1a639f9caad89 (diff) | |
download | illumos-joyent-0627591eb8261c55a48bc3b17ff3dfe0d0568939.tar.gz |
10114 fmev_proxy_cb() doesn't need inval checks
Reviewed by: Andy Stormont <astormont@racktopsystems.com>
Approved by: Richard Lowe <richlowe@richlowe.net>
Diffstat (limited to 'usr/src')
-rw-r--r-- | usr/src/lib/fm/libfmevent/common/fmev_subscribe.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/usr/src/lib/fm/libfmevent/common/fmev_subscribe.c b/usr/src/lib/fm/libfmevent/common/fmev_subscribe.c index eebdd4e1e2..a40493660d 100644 --- a/usr/src/lib/fm/libfmevent/common/fmev_subscribe.c +++ b/usr/src/lib/fm/libfmevent/common/fmev_subscribe.c @@ -24,6 +24,10 @@ */ /* + * Copyright (c) 2018, Joyent, Inc. + */ + +/* * FMA event subscription interfaces - subscribe to FMA protocol * from outside the fault manager. */ @@ -205,10 +209,9 @@ fmev_shdlctl_thrcreate(fmev_shdl_t hdl, door_xcreate_server_func_t *func, * does not keep either retrying (EAGAIN) or bleat to cmn_err. */ -uint64_t fmev_proxy_cb_inval; uint64_t fmev_proxy_cb_enomem; -int +static int fmev_proxy_cb(sysevent_t *sep, void *arg) { struct fmev_subinfo *sip = arg; @@ -217,11 +220,6 @@ fmev_proxy_cb(sysevent_t *sep, void *arg) 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); |