[PATCH] ddr_spd: remove unused local variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Marco Felsch <marco.felsch@xxxxxxxxx>

The buf8 variable was never used so remove it.

Fixes: 2f1fc1c92 ("ddr_spd: Add function to read eeprom")
Signed-off-by: Marco Felsch <m.felsch@xxxxxxxxxxxxxx>
---
 common/ddr_spd.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/common/ddr_spd.c b/common/ddr_spd.c
index f7792360de..1c1d5826e0 100644
--- a/common/ddr_spd.c
+++ b/common/ddr_spd.c
@@ -491,7 +491,6 @@ int spd_read_eeprom(struct pbl_i2c *i2c,
 		    uint8_t addr, void *buf,
 		    int memtype)
 {
-	unsigned char *buf8 = buf;
 	int ret;
 
 	if (memtype == SPD_MEMTYPE_DDR4) {
-- 
2.38.1





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux