summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek <josef.sipek@nexenta.com>2014-10-31 20:50:13 -0400
committerRobert Mustacchi <rm@joyent.com>2014-11-10 21:21:27 -0800
commit0716b62f878e855b94635ef4793ef5f7f2abb8e4 (patch)
tree327562cb286854b87162f99105b1732389914e03 /usr/src
parent7e33f252cf7e3c3ee6c4ad7a90480f5aea3a026c (diff)
downloadillumos-joyent-0716b62f878e855b94635ef4793ef5f7f2abb8e4.tar.gz
5256 document some nonsensical code in the px driver
Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/uts/sun4/io/px/px_debug.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/usr/src/uts/sun4/io/px/px_debug.c b/usr/src/uts/sun4/io/px/px_debug.c
index 6d94288615..4eea5eb9e8 100644
--- a/usr/src/uts/sun4/io/px/px_debug.c
+++ b/usr/src/uts/sun4/io/px/px_debug.c
@@ -255,6 +255,10 @@ px_dbg_attach(dev_info_t *dip, ddi_softint_handle_t *dbg_hdl)
int size = px_dbg_msg_size;
/* Check if px_dbg_msg_size is ^2 */
+ /*
+ * WARNING: The bellow statement makes no sense. If size is
+ * not a power of 2, it will set size to zero.
+ */
size = !ISP2(size) ? ((size | ~size) + 1) : size;
px_dbg_msg_size = size;
px_dbg_qmask = size - 1;