aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorVasant Hegde <hegdevasant@linux.vnet.ibm.com>2015-02-05 14:08:27 +0530
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-02-13 15:47:11 +1100
commit4519d7959d01ae5ffc15fb0a89cc33b42ef97071 (patch)
treedfd99c5af3ab423c38c8d7495532d4fb203807b9 /hw
parente8cfa9beb507574141d63f74ce501a66bbd92de8 (diff)
downloadskiboot-4519d7959d01ae5ffc15fb0a89cc33b42ef97071.zip
skiboot-4519d7959d01ae5ffc15fb0a89cc33b42ef97071.tar.gz
skiboot-4519d7959d01ae5ffc15fb0a89cc33b42ef97071.tar.bz2
FSP/LEDS: Remove duplicate fsp_msg allocation
Remove duplicate fsp_msg allocation introduced by commit fa79cecc45c2. 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, 2 insertions, 2 deletions
diff --git a/hw/fsp/fsp-leds.c b/hw/fsp/fsp-leds.c
index 1c45ccc..c6232d5 100644
--- a/hw/fsp/fsp-leds.c
+++ b/hw/fsp/fsp-leds.c
@@ -281,7 +281,7 @@ static void fsp_spcn_set_led_completion(struct fsp_msg *msg)
if (!smsg) {
prerror("LED: Failed to allocate FSP_RSP_SET_LED_STATE\n");
} else {
- if (fsp_queue_msg(msg, fsp_freemsg)) {
+ if (fsp_queue_msg(smsg, fsp_freemsg)) {
prerror("LED: Failed to queue FSP_RSP_SET_LED_STATE\n");
}
}
@@ -335,7 +335,7 @@ static int fsp_msg_set_led_state(char *loc_code, bool command, bool state)
prerror("LED: Could not allocate "
"FSP_RSP_SET_LED_STATE|FSP_STATUS_INVALID_LC\n");
} else {
- if (fsp_queue_msg(fsp_mkmsg(cmd, 0), fsp_freemsg)) {
+ if (fsp_queue_msg(msg, fsp_freemsg)) {
prerror("LED: Couldn't queue "
"FSP_RSP_SET_LED_STATE"
"|FSP_STATUS_INVALID_LC\n");