From 610dc9ceb4d9eb061209d935e2b1966dfca5a74c Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Wed, 23 Dec 2015 21:38:08 +0900 Subject: [PATCH] kodak: fix [-Wunused-but-set-variable] compiler warning --- backend/kodak.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/backend/kodak.c b/backend/kodak.c index 80a5700a2..295c78f99 100644 --- a/backend/kodak.c +++ b/backend/kodak.c @@ -2749,7 +2749,6 @@ do_cmd(struct scanner *s, int runRS, int shortTime, ) { SANE_Status ret = SANE_STATUS_GOOD; - size_t actLen = 0; /*shut up compiler*/ runRS=runRS; @@ -2766,7 +2765,6 @@ do_cmd(struct scanner *s, int runRS, int shortTime, } if (inBuff && inLen){ DBG(25, "in: reading %d bytes\n", (int)*inLen); - actLen = *inLen; } ret = sanei_scsi_cmd2(s->fd, cmdBuff, cmdLen, outBuff, outLen, inBuff, inLen);