summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/aic7xxx
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2005-05-25 04:31:10 +0200
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-05-25 05:08:14 +0200
commitd981289627a7e2d8ef62dfcaa11fb60da68f30c6 (patch)
treeb4fbf2ba540b7275fbeac97f940c5f1d504e35c5 /drivers/scsi/aic7xxx
parent[PATCH] saa6752hs build fix (diff)
downloadlinux-d981289627a7e2d8ef62dfcaa11fb60da68f30c6.tar.xz
linux-d981289627a7e2d8ef62dfcaa11fb60da68f30c6.zip
[PATCH] aic7xxx_osm build fix
Fix a c99ism. Cc: James Bottomley <James.Bottomley@steeleye.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/scsi/aic7xxx')
-rw-r--r--drivers/scsi/aic7xxx/aic7xxx_osm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/drivers/scsi/aic7xxx/aic7xxx_osm.c b/drivers/scsi/aic7xxx/aic7xxx_osm.c
index f90efa265ba2..c13e56320010 100644
--- a/drivers/scsi/aic7xxx/aic7xxx_osm.c
+++ b/drivers/scsi/aic7xxx/aic7xxx_osm.c
@@ -659,8 +659,11 @@ ahc_linux_slave_alloc(struct scsi_device *device)
ahc_lock(ahc, &flags);
targ = ahc->platform_data->targets[target_offset];
if (targ == NULL) {
- targ = ahc_linux_alloc_target(ahc, starget->channel, starget->id);
- struct seeprom_config *sc = ahc->seep_config;
+ struct seeprom_config *sc;
+
+ targ = ahc_linux_alloc_target(ahc, starget->channel,
+ starget->id);
+ sc = ahc->seep_config;
if (targ == NULL)
goto out;