diff options
author | Toomas Soome <tsoome@me.com> | 2017-08-09 15:45:01 +0300 |
---|---|---|
committer | Richard Lowe <richlowe@richlowe.net> | 2017-11-16 15:41:50 -0500 |
commit | 7373b68a8a0aaee382a6403d5a70fce9bd19d62a (patch) | |
tree | 671d3978639f192222d915455bc63f8f8d587145 | |
parent | c340f0f5876f4c5f9f4768c5b3f112e89b611888 (diff) | |
download | illumos-joyent-7373b68a8a0aaee382a6403d5a70fce9bd19d62a.tar.gz |
8786 s1394: variable 'type' set but not used
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Reviewed by: Gary Mills <gary_mills@fastmail.fm>
Approved by: Richard Lowe <richlowe@richlowe.net>
-rw-r--r-- | usr/src/uts/common/io/1394/s1394_hotplug.c | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/usr/src/uts/common/io/1394/s1394_hotplug.c b/usr/src/uts/common/io/1394/s1394_hotplug.c index 40c2e19022..a020ee2d53 100644 --- a/usr/src/uts/common/io/1394/s1394_hotplug.c +++ b/usr/src/uts/common/io/1394/s1394_hotplug.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * s1394_hotplug.c * 1394 Services Layer Hotplug Routines @@ -143,7 +141,7 @@ s1394_create_devinfo(s1394_hal_t *hal, s1394_node_t *node, uint32_t *unit_dir, int node_ven, node_hw, node_spec, node_sw; /*LINTED type is unused*/ - uint32_t type, key, value; + uint32_t type __unused, key, value; uint32_t unit_spec_id, unit_sw_version; uint32_t node_spec_id, node_sw_version; uint32_t node_vendor_id, node_hw_version; @@ -690,7 +688,7 @@ s1394_offline_node(s1394_hal_t *hal, s1394_node_t *node) while (t != NULL) { TNF_PROBE_2(s1394_process_old_tree_mark, S1394_TNF_SL_HOTPLUG_STACK, "", tnf_int, node_num, node_num, - tnf_opaque, target, t); + tnf_opaque, target, t); t->target_state |= S1394_TARG_GONE; t->on_node = NULL; t = t->target_sibling; @@ -1004,17 +1002,20 @@ s1394_process_old_tree(s1394_hal_t *hal) cur_node) == B_FALSE)))) { if (onode->cur_node != NULL && CFGROM_VALID(onode) == - B_TRUE && CFGROM_VALID(onode->cur_node) == B_FALSE) - TNF_PROBE_1_DEBUG - (s1394_process_old_tree_invalid_cfgrom, + B_TRUE && + CFGROM_VALID(onode->cur_node) == B_FALSE) { + TNF_PROBE_1_DEBUG( + s1394_process_old_tree_invalid_cfgrom, S1394_TNF_SL_HOTPLUG_STACK, "", tnf_int, node_num, i); + } if (onode->cur_node != NULL && LINK_ACTIVE(onode) == - B_TRUE && LINK_ACTIVE(onode->cur_node) == B_FALSE) - TNF_PROBE_1_DEBUG - (s1394_process_old_tree_link_off, + B_TRUE && LINK_ACTIVE(onode->cur_node) == B_FALSE) { + TNF_PROBE_1_DEBUG( + s1394_process_old_tree_link_off, S1394_TNF_SL_HOTPLUG_STACK, "", tnf_int, node_num, i); + } if (s1394_offline_node(hal, onode) != DDI_SUCCESS) { TNF_PROBE_2(s1394_process_old_tree, S1394_TNF_SL_HOTPLUG_ERROR, "", tnf_string, |