[Skiboot] [PATCH 5/9] npu2: Remove unused npu2_dev::procedure_data

Reza Arbab arbab at linux.ibm.com
Thu Jan 10 02:58:47 AEDT 2019


This variable is never used. Remove it.

Signed-off-by: Reza Arbab <arbab at linux.ibm.com>
---
 hw/npu2-hw-procedures.c | 2 --
 include/npu2.h          | 1 -
 2 files changed, 3 deletions(-)

diff --git a/hw/npu2-hw-procedures.c b/hw/npu2-hw-procedures.c
index fa64075..5214cdd 100644
--- a/hw/npu2-hw-procedures.c
+++ b/hw/npu2-hw-procedures.c
@@ -908,7 +908,6 @@ static int64_t npu_dev_procedure_write(struct npu2_dev *dev, uint32_t offset,
 		dev->procedure_status = PROCEDURE_INPROGRESS;
 		dev->procedure_number = data;
 		dev->procedure_step = 0;
-		dev->procedure_data = 0;
 		dev->procedure_tb = mftb();
 		break;
 
@@ -961,7 +960,6 @@ static uint32_t run_procedure(struct npu2_dev *dev, uint16_t procedure_number)
 	dev->procedure_status = PROCEDURE_INPROGRESS;
 	dev->procedure_number = procedure_number;
 	dev->procedure_step = 0;
-	dev->procedure_data = 0;
 	dev->procedure_tb = mftb();
 
 	result = get_procedure_status(dev);
diff --git a/include/npu2.h b/include/npu2.h
index f2b5a23..8906723 100644
--- a/include/npu2.h
+++ b/include/npu2.h
@@ -136,7 +136,6 @@ struct npu2_dev {
 	/* Track currently running procedure and step number */
 	uint16_t		procedure_number;
 	uint16_t		procedure_step;
-	uint64_t		procedure_data;
 	unsigned long		procedure_tb;
 	uint32_t		procedure_status;
 
-- 
1.8.3.1



More information about the Skiboot mailing list