Skip to content

Commit 8384c82

Browse files
Finn Thainmpe
authored andcommitted
macintosh/adb-iop: Remove dead and redundant code
Signed-off-by: Finn Thain <fthain@telegraphics.com.au> Tested-by: Stan Johnson <userm57@yahoo.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/7720ffb559c334504e16b24d9c2f3b8973d2d674.1590880623.git.fthain@telegraphics.com.au
1 parent 65156f2 commit 8384c82

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

‎drivers/macintosh/adb-iop.c‎

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,16 @@
1818
#include <linux/mm.h>
1919
#include <linux/delay.h>
2020
#include <linux/init.h>
21-
#include <linux/proc_fs.h>
2221

2322
#include <asm/macintosh.h>
2423
#include <asm/macints.h>
2524
#include <asm/mac_iop.h>
26-
#include <asm/mac_oss.h>
2725
#include <asm/adb_iop.h>
2826

2927
#include <linux/adb.h>
3028

31-
/*#define DEBUG_ADB_IOP*/
32-
3329
static struct adb_request *current_req;
3430
static struct adb_request *last_req;
35-
#if 0
36-
static unsigned char reply_buff[16];
37-
static unsigned char *reply_ptr;
38-
#endif
3931

4032
static enum adb_iop_state {
4133
idle,
@@ -104,22 +96,11 @@ static void adb_iop_listen(struct iop_msg *msg)
10496
struct adb_iopmsg *amsg = (struct adb_iopmsg *)msg->message;
10597
struct adb_request *req;
10698
unsigned long flags;
107-
#ifdef DEBUG_ADB_IOP
108-
int i;
109-
#endif
11099

111100
local_irq_save(flags);
112101

113102
req = current_req;
114103

115-
#ifdef DEBUG_ADB_IOP
116-
printk("adb_iop_listen %p: rcvd packet, %d bytes: %02X %02X", req,
117-
(uint)amsg->count + 2, (uint)amsg->flags, (uint)amsg->cmd);
118-
for (i = 0; i < amsg->count; i++)
119-
printk(" %02X", (uint)amsg->data[i]);
120-
printk("\n");
121-
#endif
122-
123104
/* Handle a timeout. Timeout packets seem to occur even after */
124105
/* we've gotten a valid reply to a TALK, so I'm assuming that */
125106
/* a "timeout" is actually more like an "end-of-data" signal. */
@@ -163,9 +144,6 @@ static void adb_iop_start(void)
163144
unsigned long flags;
164145
struct adb_request *req;
165146
struct adb_iopmsg amsg;
166-
#ifdef DEBUG_ADB_IOP
167-
int i;
168-
#endif
169147

170148
/* get the packet to send */
171149
req = current_req;
@@ -174,13 +152,6 @@ static void adb_iop_start(void)
174152

175153
local_irq_save(flags);
176154

177-
#ifdef DEBUG_ADB_IOP
178-
printk("adb_iop_start %p: sending packet, %d bytes:", req, req->nbytes);
179-
for (i = 0; i < req->nbytes; i++)
180-
printk(" %02X", (uint)req->data[i]);
181-
printk("\n");
182-
#endif
183-
184155
/* The IOP takes MacII-style packets, so */
185156
/* strip the initial ADB_PACKET byte. */
186157

0 commit comments

Comments
 (0)