public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
* [patch 13/30] nsp32_restart_autoscsi(): remove error check
@ 2007-08-10 21:50 akpm
  2007-08-11  1:03 ` James Bottomley
  0 siblings, 1 reply; 3+ messages in thread
From: akpm @ 2007-08-10 21:50 UTC (permalink / raw)
  To: James.Bottomley; +Cc: linux-scsi, akpm, bunk, yokota

From: Adrian Bunk <bunk@stusta.de>

The Coverity checker noted that we'll anyway Oops later when we ran into
this condition - and the error check didn't prevent that.

Considering that the error condition shouldn't be possible, and we are
not able to handle it easily, this patch simply removes the pointless
error check.

Signed-off-by: Adrian Bunk <bunk@stusta.de>
Cc: <yokota@netlab.is.tsukuba.ac.jp>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

 drivers/scsi/nsp32.c |    4 ----
 1 files changed, 4 deletions(-)

diff -puN drivers/scsi/nsp32.c~nsp32_restart_autoscsi-remove-error-check drivers/scsi/nsp32.c
--- a/drivers/scsi/nsp32.c~nsp32_restart_autoscsi-remove-error-check
+++ a/drivers/scsi/nsp32.c
@@ -1905,10 +1905,6 @@ static void nsp32_restart_autoscsi(struc
 
 	nsp32_dbg(NSP32_DEBUG_RESTART, "enter");
 
-	if (data->cur_target == NULL || data->cur_lunt == NULL) {
-		nsp32_msg(KERN_ERR, "Target or Lun is invalid");
-	}
-
 	/*
 	 * set SYNC_REG
 	 * Don't set BM_START_ADR before setting this register.
_

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-08-11  2:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-10 21:50 [patch 13/30] nsp32_restart_autoscsi(): remove error check akpm
2007-08-11  1:03 ` James Bottomley
2007-08-11  2:25   ` Adrian Bunk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox