aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/flash/nor/em357.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/flash/nor/em357.c b/src/flash/nor/em357.c
index a62be6af..c400187d 100644
--- a/src/flash/nor/em357.c
+++ b/src/flash/nor/em357.c
@@ -757,10 +757,7 @@ static int em357_auto_probe(struct flash_bank *bank)
static int get_em357_info(struct flash_bank *bank, char *buf, int buf_size)
{
- int printed;
- printed = snprintf(buf, buf_size, "em357\n");
- buf += printed;
- buf_size -= printed;
+ snprintf(buf, buf_size, "em357\n");
return ERROR_OK;
}