summaryrefslogtreecommitdiffstats
path: root/hw/fsp
diff options
context:
space:
mode:
authorStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 16:15:14 +1100
committerStewart Smith <stewart@linux.vnet.ibm.com>2015-11-10 16:15:14 +1100
commit902cc27d818d343319e12628459e01869a2cf492 (patch)
treea8dbc0fbb1755781ebdb511df880da33f083871c /hw/fsp
parent8d77fdd370736ae4a20bc707b4973c18c3e6c22e (diff)
downloadblackbird-skiboot-902cc27d818d343319e12628459e01869a2cf492.tar.gz
blackbird-skiboot-902cc27d818d343319e12628459e01869a2cf492.zip
llvm-scan-build: fix dead assignment in fsp-leds.c
Simple fix as bytes_sent is assigned in the following line. hw/fsp/fsp-leds.c:817:3: warning: Value stored to 'bytes_sent' is never read bytes_sent = 0; ^ ~ hw/fsp/fsp-leds.c:830:4: warning: Value stored to 'bytes_sent' is never read bytes_sent = 0; ^ ~ Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'hw/fsp')
-rw-r--r--hw/fsp/fsp-leds.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/fsp/fsp-leds.c b/hw/fsp/fsp-leds.c
index 4933dfac..9ba588b7 100644
--- a/hw/fsp/fsp-leds.c
+++ b/hw/fsp/fsp-leds.c
@@ -814,7 +814,6 @@ static void fsp_ret_loc_code_list(u16 req_type, char *loc_code)
}
/* Push the data into TCE buffer */
- bytes_sent = 0;
bytes_sent = fsp_push_data_to_tce(led, out_data, total_size);
/* Advance the TCE pointer */
@@ -827,7 +826,6 @@ static void fsp_ret_loc_code_list(u16 req_type, char *loc_code)
list_for_each_safe(&encl_ledq, led, next, link) {
/* Push the data into TCE buffer */
- bytes_sent = 0;
bytes_sent = fsp_push_data_to_tce(led,
out_data, total_size);
OpenPOWER on IntegriCloud