From 7dc416b7ae3f0db7c5ce97b5bce0f05f869d877f Mon Sep 17 00:00:00 2001 From: Olaf Meeuwissen Date: Wed, 11 Nov 2015 22:38:32 +0900 Subject: [PATCH] Remove unnecessary cast --- backend/rts8891.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/rts8891.c b/backend/rts8891.c index 50f02f9cd..5945327c9 100644 --- a/backend/rts8891.c +++ b/backend/rts8891.c @@ -617,7 +617,7 @@ set_automatic_value (Rts8891_Session * s, int option, SANE_Int * myinfo) { SANE_Status status = SANE_STATUS_GOOD; SANE_Int i, min; - SANE_Word *dpi_list; + const SANE_Word *dpi_list; switch (option) { @@ -639,7 +639,7 @@ set_automatic_value (Rts8891_Session * s, int option, SANE_Int * myinfo) break; case OPT_RESOLUTION: /* we set up to the lowest available dpi value */ - dpi_list = (SANE_Word *) s->opt[OPT_RESOLUTION].constraint.word_list; + dpi_list = s->opt[OPT_RESOLUTION].constraint.word_list; min = 65536; for (i = 1; i < dpi_list[0]; i++) {