aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-07-18 20:53:51 +0900
committerOlaf Meeuwissen <paddy-hack@member.fsf.org>2016-07-18 20:53:51 +0900
commiteffc26e4028f2d21a5bd9fec0458a78c0f6dc330 (patch)
treef26e6cfda30464f1a9050d0a09b0567f78c7318b
parent2d468852288b5d80e9e8b6831467081fe3ec874e (diff)
kvs20xx: fix [-Wunused-function] compiler warning
This rather unceremoniously removed the function. Note that a near copy can be found in the kvs40xx backend code.
-rw-r--r--backend/kvs20xx_cmd.c23
1 files changed, 0 insertions, 23 deletions
diff --git a/backend/kvs20xx_cmd.c b/backend/kvs20xx_cmd.c
index 9e9f20a..d0f18ee 100644
--- a/backend/kvs20xx_cmd.c
+++ b/backend/kvs20xx_cmd.c
@@ -301,29 +301,6 @@ kvs20xx_read_picture_element (struct scanner * s, unsigned side,
return SANE_STATUS_GOOD;
}
-static SANE_Status
-get_buffer_status (struct scanner * s, unsigned *data_avalible)
-{
- SANE_Status status;
- struct cmd c = {
- {0},
- 10,
- 0,
- 12,
- CMD_IN
- };
- u32 *data;
- c.cmd[0] = GET_BUFFER_STATUS;
- c.cmd[7] = 12;
-
- status = send_command (s, &c);
- if (status)
- return status;
- data = (u32 *) c.data;
- *data_avalible = be2cpu32 (data[3]);
- return SANE_STATUS_GOOD;
-}
-
SANE_Status
kvs20xx_read_image_data (struct scanner * s, unsigned page, unsigned side,
void *buf, unsigned max_size, unsigned *size)