aboutsummaryrefslogtreecommitdiff
path: root/hw/npu2-opencapi.c
diff options
context:
space:
mode:
authorReza Arbab <arbab@linux.ibm.com>2019-01-09 09:58:45 -0600
committerStewart Smith <stewart@linux.ibm.com>2019-01-16 00:46:49 -0600
commit69ca8a8ff7a96ddb0f2bd9cdc54f69c364289ae6 (patch)
treeed3c57b7790e09e8ffec0f9c48fc2fac2a669542 /hw/npu2-opencapi.c
parent552cb9e371d82cea05ce5e6a2b8ae033361e2c72 (diff)
downloadskiboot-69ca8a8ff7a96ddb0f2bd9cdc54f69c364289ae6.zip
skiboot-69ca8a8ff7a96ddb0f2bd9cdc54f69c364289ae6.tar.gz
skiboot-69ca8a8ff7a96ddb0f2bd9cdc54f69c364289ae6.tar.bz2
npu2: Remove unused npu2::bdf2pe_cache
This cache is written but never read. Wiring it up would gain us little (except added complexity), and it obviously hasn't been missed thus far, so remove it altogether. Signed-off-by: Reza Arbab <arbab@linux.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
Diffstat (limited to 'hw/npu2-opencapi.c')
-rw-r--r--hw/npu2-opencapi.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/npu2-opencapi.c b/hw/npu2-opencapi.c
index 65f623c..8075d4e 100644
--- a/hw/npu2-opencapi.c
+++ b/hw/npu2-opencapi.c
@@ -1447,7 +1447,6 @@ static int64_t npu2_opencapi_set_pe(struct phb *phb,
reg = NPU2_REG_OFFSET(NPU2_STACK_MISC, NPU2_BLOCK_MISC,
NPU2_MISC_BRICK0_BDF2PE_MAP0 +
(dev->brick_index * 0x18));
- p->bdf2pe_cache[dev->brick_index] = val;
npu2_write(p, reg, val);
return OPAL_SUCCESS;