From 45f2c48a988888e3f1eba88b8d054013e0610c00 Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Thu, 21 Apr 2005 07:35:45 -0700 Subject: [PATCH] --- yaml --- r: 341 b: refs/heads/master c: 858eaca169ed5e7b1b14eebb889323e75a02af0e h: refs/heads/master i: 339: 0f5122279b976fb6de829ef772b69968407f8723 v: v3 --- [refs] | 2 +- trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 2a2e03b8a4af..7fb5c30cca88 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a2755a80f40e5794ddc20e00f781af9d6320fafb +refs/heads/master: 858eaca169ed5e7b1b14eebb889323e75a02af0e diff --git a/trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c b/trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c index d74b99dab7ec..e60f9338e44a 100644 --- a/trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c +++ b/trunk/drivers/scsi/aic7xxx/aic7xxx_osm.c @@ -3605,9 +3605,8 @@ ahc_linux_init(void) ahc_linux_transport_template = spi_attach_transport(&ahc_linux_transport_functions); if (!ahc_linux_transport_template) return -ENODEV; - int rc = ahc_linux_detect(&aic7xxx_driver_template); - if (rc) - return rc; + if (ahc_linux_detect(&aic7xxx_driver_template)) + return 0; spi_release_transport(ahc_linux_transport_template); ahc_linux_exit(); return -ENODEV;