[PATCH] aic7xxx_osm build fix
authorAndrew Morton <akpm@osdl.org>
Wed, 25 May 2005 02:31:10 +0000 (19:31 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 25 May 2005 03:08:14 +0000 (20:08 -0700)
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>
drivers/scsi/aic7xxx/aic7xxx_osm.c

index f90efa265ba276d8cdd47235822f3c55ee102705..c13e56320010cc641f09db992e9cbb5599967ca7 100644 (file)
@@ -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) {
        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;
 
                if (targ == NULL)
                        goto out;