* [PATCH] ddr_spd: remove unused local variable
@ 2023-01-25 12:48 Marco Felsch
2023-01-26 8:16 ` Sascha Hauer
0 siblings, 1 reply; 2+ messages in thread
From: Marco Felsch @ 2023-01-25 12:48 UTC (permalink / raw)
To: barebox
From: Marco Felsch <marco.felsch@gmail.com>
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@pengutronix.de>
---
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] ddr_spd: remove unused local variable
2023-01-25 12:48 [PATCH] ddr_spd: remove unused local variable Marco Felsch
@ 2023-01-26 8:16 ` Sascha Hauer
0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2023-01-26 8:16 UTC (permalink / raw)
To: Marco Felsch; +Cc: barebox
On Wed, Jan 25, 2023 at 01:48:40PM +0100, Marco Felsch wrote:
> From: Marco Felsch <marco.felsch@gmail.com>
>
> 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@pengutronix.de>
> ---
> common/ddr_spd.c | 1 -
> 1 file changed, 1 deletion(-)
Applied, thanks
Sascha
>
> 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
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-01-26 8:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-25 12:48 [PATCH] ddr_spd: remove unused local variable Marco Felsch
2023-01-26 8:16 ` Sascha Hauer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox