From b6b1674d5b966f96ebd04e9c195126e02421b0d6 Mon Sep 17 00:00:00 2001 From: Matthew Wilcox Date: Thu, 26 Jul 2007 11:56:00 -0400 Subject: [PATCH 18/22] advansys: remove detect_called Apparently it used to be possible to call the detect method twice. That's not possible any more with the new style init routine. Signed-off-by: Matthew Wilcox --- drivers/scsi/advansys.c | 9 --------- 1 files changed, 0 insertions(+), 9 deletions(-) diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index 1be68c5..3a006ed 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -17888,18 +17888,9 @@ advansys_board_found(int iop, struct device *dev, int bus_type) */ static int __init advansys_detect(void) { - static int detect_called = ASC_FALSE; int iop, bus, ioport = 0; struct Scsi_Host *shost; - if (detect_called == ASC_FALSE) { - detect_called = ASC_TRUE; - } else { - printk - ("AdvanSys SCSI: advansys_detect() multiple calls ignored\n"); - return 0; - } - ASC_DBG(1, "advansys_detect: begin\n"); asc_board_count = 0; -- 1.4.4.4