]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[SCSI] fix C syntax problem in scsi_lib.c
authorakpm@osdl.org <akpm@osdl.org>
Sun, 26 Jun 2005 07:12:51 +0000 (00:12 -0700)
committerJames Bottomley <jejb@titanic.(none)>
Sun, 28 Aug 2005 16:34:09 +0000 (11:34 -0500)
Older gcc's require variable definitions at the beginning of a block.

Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_lib.c

index bdea26b56dc4252dd923393e2e5b3c9ddea556ea..58da7f64c22f00294662002d59802fdbd6cb89b2 100644 (file)
@@ -336,14 +336,15 @@ int scsi_execute_req(struct scsi_device *sdev, const unsigned char *cmd,
                     struct scsi_sense_hdr *sshdr, int timeout, int retries)
 {
        char *sense = NULL;
-               
+       int result;
+       
        if (sshdr) {
                sense = kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL);
                if (!sense)
                        return DRIVER_ERROR << 24;
                memset(sense, 0, sizeof(*sense));
        }
-       int result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen,
+       result = scsi_execute(sdev, cmd, data_direction, buffer, bufflen,
                                  sense, timeout, retries, 0);
        if (sshdr)
                scsi_normalize_sense(sense, sizeof(*sense), sshdr);