diff options
| author | anbui <none@none> | 2007-11-21 12:38:21 -0800 |
|---|---|---|
| committer | anbui <none@none> | 2007-11-21 12:38:21 -0800 |
| commit | 71e32251703c729dbbebef2101770135584fd8d4 (patch) | |
| tree | abae3d68a912336a2fb23e3461b4a018a69aa4c3 /usr/src/cmd/picl | |
| parent | 36e5aa2ab5c51d4747a2470e41ccb782056c90e7 (diff) | |
| download | illumos-joyent-71e32251703c729dbbebef2101770135584fd8d4.tar.gz | |
6346782 disk ok to remove LED lit on 480/490 internal disks after reboot
Diffstat (limited to 'usr/src/cmd/picl')
| -rw-r--r-- | usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/psvcpolicy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/psvcpolicy.c b/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/psvcpolicy.c index 1a19ae7cde..529d88e529 100644 --- a/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/psvcpolicy.c +++ b/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcpolicy/psvcpolicy.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2005 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1531,14 +1531,14 @@ light_disk_ok2remove_leds(psvc_opaque_t hdlp, boolean_t *disk_present) min_node = di_minor_next(node, DI_MINOR_NIL); disk_online = (min_node != DI_MINOR_NIL); - if (! disk_online && prev_online[target]) { + if ((disk_online == 0) && (prev_online[target] == 1)) { /* Light Led */ bit_val = 0; rv = pcf8574_write_bit(hdlp, "DISK_PORT", bit_nums[target], bit_val, DISKBP_MUST_BE_1); if (rv != PSVC_SUCCESS) goto done; - } else if (!prev_online[target] && disk_online) { + } else if ((prev_online[target] == 0) && (disk_online == 1)) { /* Unlight Led */ bit_val = 1; rv = pcf8574_write_bit(hdlp, "DISK_PORT", |
