mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Marco Felsch <m.felsch@pengutronix.de>
To: barebox@lists.infradead.org
Subject: [PATCH] ddr_spd: remove unused local variable
Date: Wed, 25 Jan 2023 13:48:40 +0100	[thread overview]
Message-ID: <20230125124840.3386338-1-m.felsch@pengutronix.de> (raw)

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




             reply	other threads:[~2023-01-25 12:50 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-25 12:48 Marco Felsch [this message]
2023-01-26  8:16 ` Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230125124840.3386338-1-m.felsch@pengutronix.de \
    --to=m.felsch@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox