From 68a41e6d1e3d1bc94522fa76ed2a407a8c465f96 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 9 Dec 2025 15:13:47 +0100 Subject: [PATCH] I2CDelay(): drop unused variable Signed-off-by: Enrico Weigelt, metux IT consult --- src/ast_vgatool.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/ast_vgatool.c b/src/ast_vgatool.c index eea6938..69c5b86 100644 --- a/src/ast_vgatool.c +++ b/src/ast_vgatool.c @@ -3643,12 +3643,9 @@ I2CReadData(ASTRecPtr pAST) static void I2CDelay(ASTRecPtr pAST) { - ULONG i; - UCHAR jtemp; - - for (i=0;i<150;i++) - jtemp = GetReg(SEQ_PORT); - + /* calling GetReg() several times in order to spend some time */ + for (int i=0; i<150; i++) + GetReg(SEQ_PORT); } static void