summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-02-05 14:09:22 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-13 16:48:01 +1100
commit02f4fa2249530fadb1f06b456aa0fa70124fb259 (patch)
treef8912c81ef2c8335a3105f5e0903512063660c67 /hw
parent8affde09b29283d014a3de93d669ac4d450a0008 (diff)
downloadblackbird-skiboot-02f4fa2249530fadb1f06b456aa0fa70124fb259.tar.gz
blackbird-skiboot-02f4fa2249530fadb1f06b456aa0fa70124fb259.zip
FSP/LEDS: Remove redundant variable declaration
Remove redundant variable declaration Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/fsp/fsp-leds.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/fsp/fsp-leds.c b/hw/fsp/fsp-leds.c
index 204df7f7..8ad363d4 100644
--- a/hw/fsp/fsp-leds.c
+++ b/hw/fsp/fsp-leds.c
@@ -303,7 +303,7 @@ static int fsp_msg_set_led_state(char *loc_code, bool command, bool state)
void *buf = led_buffer;
u16 data_len = 0;
u32 cmd_hdr = 0;
- int rc = 0;
+ int rc = -1;
sled.lc_len = strlen(loc_code);
strncpy(sled.lc_code, loc_code, sled.lc_len);
@@ -319,9 +319,7 @@ static int fsp_msg_set_led_state(char *loc_code, bool command, bool state)
/* LED not present */
if (led == NULL) {
u32 cmd = 0;
- int rc = -1;
struct fsp_msg *msg = NULL;
-
cmd = FSP_RSP_SET_LED_STATE | FSP_STATUS_INVALID_LC;
msg = fsp_mkmsg(cmd, 0);
OpenPOWER on IntegriCloud