diff options
author | Yuri Pankov <yuri.pankov@nexenta.com> | 2018-03-10 05:49:11 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-05-01 10:39:33 -0400 |
commit | 66f654faf94d77a6760e083cb715592f4a408046 (patch) | |
tree | 48c58f835f9ce149f4f65b6be163f62d30ce4d19 /usr | |
parent | 6d1e6c904bd5a457b056df2ae360a7354081558d (diff) | |
download | illumos-joyent-66f654faf94d77a6760e083cb715592f4a408046.tar.gz |
9257 hvm drivers don't need to anounce failure to report version
Reviewed by: Toomas Soome <tsoome@me.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr')
-rw-r--r-- | usr/src/uts/common/xen/io/xdf.c | 8 | ||||
-rw-r--r-- | usr/src/uts/common/xen/io/xnf.c | 9 | ||||
-rw-r--r-- | usr/src/uts/common/xen/io/xpvd.c | 9 | ||||
-rw-r--r-- | usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c | 9 |
4 files changed, 12 insertions, 23 deletions
diff --git a/usr/src/uts/common/xen/io/xdf.c b/usr/src/uts/common/xen/io/xdf.c index 71e9a17ae7..7a945b8cf1 100644 --- a/usr/src/uts/common/xen/io/xdf.c +++ b/usr/src/uts/common/xen/io/xdf.c @@ -3598,11 +3598,9 @@ done: #ifdef XPV_HVM_DRIVER xdf_hvm_add(dip); - /* Report our version to dom0. */ - if (xenbus_printf(XBT_NULL, "guest/xdf", "version", "%d", - HVMPV_XDF_VERS)) - cmn_err(CE_WARN, "xdf: couldn't write version\n"); - + /* Report our version to dom0 */ + (void) xenbus_printf(XBT_NULL, "guest/xdf", "version", "%d", + HVMPV_XDF_VERS); #endif /* XPV_HVM_DRIVER */ /* Create kstat for iostat(1M) */ diff --git a/usr/src/uts/common/xen/io/xnf.c b/usr/src/uts/common/xen/io/xnf.c index e2475b5942..ebed9c5f7e 100644 --- a/usr/src/uts/common/xen/io/xnf.c +++ b/usr/src/uts/common/xen/io/xnf.c @@ -1057,12 +1057,9 @@ xnf_attach(dev_info_t *devinfo, ddi_attach_cmd_t cmd) xnfp->xnf_rx_new_buffers_posted = B_FALSE; #ifdef XPV_HVM_DRIVER - /* - * Report our version to dom0. - */ - if (xenbus_printf(XBT_NULL, "guest/xnf", "version", "%d", - HVMPV_XNF_VERS)) - cmn_err(CE_WARN, "xnf: couldn't write version\n"); + /* Report our version to dom0 */ + (void) xenbus_printf(XBT_NULL, "guest/xnf", "version", "%d", + HVMPV_XNF_VERS); #endif /* diff --git a/usr/src/uts/common/xen/io/xpvd.c b/usr/src/uts/common/xen/io/xpvd.c index 343f8254ba..5f8966fce7 100644 --- a/usr/src/uts/common/xen/io/xpvd.c +++ b/usr/src/uts/common/xen/io/xpvd.c @@ -287,12 +287,9 @@ xpvd_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) #ifdef XPV_HVM_DRIVER (void) ddi_prop_update_int(DDI_DEV_T_NONE, devi, DDI_NO_AUTODETACH, 1); - /* - * Report our version to dom0. - */ - if (xenbus_printf(XBT_NULL, "guest/xpvd", "version", "%d", - HVMPV_XPVD_VERS)) - cmn_err(CE_WARN, "xpvd: couldn't write version\n"); + /* Report our version to dom0 */ + (void) xenbus_printf(XBT_NULL, "guest/xpvd", "version", "%d", + HVMPV_XPVD_VERS); #endif /* XPV_HVM_DRIVER */ /* watch both frontend and backend for new devices */ diff --git a/usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c b/usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c index e6c1b6f6a8..4cd568737b 100644 --- a/usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c +++ b/usr/src/uts/i86pc/i86hvm/io/xpv/xpv_support.c @@ -739,12 +739,9 @@ xpv_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) */ memscrub_disable(); - /* - * Report our version to dom0. - */ - if (xenbus_printf(XBT_NULL, "guest/xpv", "version", "%d", - HVMPV_XPV_VERS)) - cmn_err(CE_WARN, "xpv: couldn't write version\n"); + /* Report our version to dom0 */ + (void) xenbus_printf(XBT_NULL, "guest/xpv", "version", "%d", + HVMPV_XPV_VERS); return (DDI_SUCCESS); } |