Mercurial > illumos > git > illumos-omnios
changeset 23931:00a82aa93317
13415 psvcpolicy: variable 'curr_state' set but not used
Reviewed by: Andrew Stormont <andyjstormont@gmail.com>
Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
author | Toomas Soome <tsoome@me.com> |
---|---|
date | Mon, 13 Apr 2020 18:42:22 +0300 |
parents | 7c19110d764f |
children | e3fed5493524 |
files | usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/psvcpolicy.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/psvcpolicy.c Tue May 26 10:28:19 2020 +0300 +++ b/usr/src/cmd/picl/plugins/sun4u/daktari/psvcpolicy/psvcpolicy.c Mon Apr 13 18:42:22 2020 +0300 @@ -23,8 +23,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - /* * Daktari platform platform specific environment monitoring policies */ @@ -98,7 +96,7 @@ #define GET_SENSOR_FAILED_MSG \ gettext("Failed to get sensor value, id = %s, errno = %d\n") #define ADD_PS_MSG \ -gettext("WARNING: Only 1 Power Supply in system. ADD a 2nd Power Supply.\n") + gettext("WARNING: Only 1 Power Supply in system. ADD a 2nd Power Supply.\n") #define REMOVE_LOAD_MSG \ gettext("WARNING: Power Supply at 95%% current. Remove some load.\n") #define PS_OVER_CURRENT_MSG \ @@ -201,7 +199,7 @@ static void i2cparams_debug(i2c_noise_param_t *pi2cparams, char *platform, - int usingDefaults) + int usingDefaults) { char s[128]; i2c_noise_param_t *p; @@ -1849,7 +1847,7 @@ { int32_t status = PSVC_SUCCESS; int32_t i; - char curr_state[32], prev_state[32], led_state[32]; + char prev_state[32], led_state[32]; char disk_fault[32], disk_state[32]; static char *disk_id[DAK_MAX_DISKS] = {NULL}; static char *led_id[DAK_MAX_DISKS] = {NULL}; @@ -1884,7 +1882,6 @@ } for (i = 0; i < DAK_MAX_DISKS; i++) { - curr_state[0] = 0; prev_state[0] = 0; status = psvc_get_attr(hdlp, disk_id[i], PSVC_PRESENCE_ATTR,