summaryrefslogtreecommitdiff
path: root/debian/patches/0067-Scanning-broken-for-HP-LaserJet-3052.patch
blob: 2b5bdb711a48aead5e88458d3d71bccea5241e50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Zdenek Dohnal <zdohnal@redhat.com>
Date: Fri, 31 Jan 2020 13:40:10 +0100
Subject: Scanning broken for HP LaserJet 3052

Origin: https://src.fedoraproject.org/rpms/hplip/blob/master/f/hplip-hplj-3052.patch
---
 scan/scanext/scanext.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/scan/scanext/scanext.c b/scan/scanext/scanext.c
index 3ddfb35..1e6b514 100755
--- a/scan/scanext/scanext.c
+++ b/scan/scanext/scanext.c
@@ -408,16 +408,6 @@ static PyObject *setOption (_ScanDevice * self, PyObject * args)
     int n;
     multipick = 1;
 
-if(1)
-{
-SANE_Bool b = SANE_TRUE;
-    sane_control_option (self->h, 9, SANE_ACTION_SET_VALUE, (void *)&b, &i);
-}
-else
-{
-SANE_Bool b = SANE_FALSE;
-    sane_control_option (self->h, 9, SANE_ACTION_SET_VALUE, (void *)&b, &i);
-}
     if (!PyArg_ParseTuple (args, "iO", &n, &value))
         raiseError("Invalid arguments.");