public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Rusty Trivial Russell <rusty@rustcorp.com.au>
To: linux-scsi@vger.kernel.org, axboe@suse.de
Subject: [TRIVIAL] [2.5 patch] remove an unused function from NCR53c406a.c
Date: Mon, 07 Jul 2003 17:46:24 +1000	[thread overview]
Message-ID: <20030707080051.AD4242C2C6@lists.samba.org> (raw)

From:  Adrian Bunk <bunk@fs.tum.de>

  The patch below removes an unused function from 
  drivers/scsi/NCR53c406a.c .
   
  I've tested the compilation with 2.5.72-mm2.
   

--- trivial-2.5.74-bk4/drivers/scsi/NCR53c406a.c.orig	2003-07-07 17:36:33.000000000 +1000
+++ trivial-2.5.74-bk4/drivers/scsi/NCR53c406a.c	2003-07-07 17:36:33.000000000 +1000
@@ -170,7 +170,6 @@
 /* Static function prototypes */
 static void NCR53c406a_intr(int, void *, struct pt_regs *);
 static irqreturn_t do_NCR53c406a_intr(int, void *, struct pt_regs *);
-static void wait_intr(void);
 static void chip_init(void);
 static void calc_port_addr(void);
 #ifndef IRQ_LEV
@@ -664,26 +663,6 @@
 	return (info_msg);
 }
 
-static void wait_intr(void)
-{
-	unsigned long i = jiffies + WATCHDOG;
-
-	while (time_after(i, jiffies) && !(inb(STAT_REG) & 0xe0)) {	/* wait for a pseudo-interrupt */
-		cpu_relax();
-		barrier();
-	}
-
-	if (time_before_eq(i, jiffies)) {	/* Timed out */
-		rtrc(0);
-		current_SC->result = DID_TIME_OUT << 16;
-		current_SC->SCp.phase = idle;
-		current_SC->scsi_done(current_SC);
-		return;
-	}
-
-	NCR53c406a_intr(0, NULL, NULL);
-}
-
 static int NCR53c406a_queue(Scsi_Cmnd * SCpnt, void (*done) (Scsi_Cmnd *))
 {
 	int i;
-- 
  What is this? http://www.kernel.org/pub/linux/kernel/people/rusty/trivial/
  Don't blame me: the Monkey is driving
  File: Adrian Bunk <bunk@fs.tum.de>: [2.5 patch] remove an unused function from NCR53c406a.c

             reply	other threads:[~2003-07-07  7:46 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-07  7:46 Rusty Trivial Russell [this message]
2003-07-07 13:56 ` [TRIVIAL] [2.5 patch] remove an unused function from NCR53c406a.c James Bottomley
2003-07-07 14:01   ` Alan Cox
2003-07-08  1:27   ` Rusty Russell
2003-07-10 21:37     ` Adrian Bunk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030707080051.AD4242C2C6@lists.samba.org \
    --to=rusty@rustcorp.com.au \
    --cc=axboe@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox