tree db7296e294cef3008140404e3047c3adce6f5149
parent 84743bbcf9fc3767aa33f769898432538281e6dc
author [EMAIL PROTECTED] <[EMAIL PROTECTED]> Sun, 26 Jun 2005 14:12:51 -0700
committer James Bottomley <[EMAIL PROTECTED](none)> Sun, 28 Aug 2005 21:34:09 
-0500

[SCSI] fix C syntax problem in scsi_lib.c

Older gcc's require variable definitions at the beginning of a block.

Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: James Bottomley <[EMAIL PROTECTED]>

 drivers/scsi/scsi_lib.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c
--- a/drivers/scsi/scsi_lib.c
+++ b/drivers/scsi/scsi_lib.c
@@ -336,14 +336,15 @@ int scsi_execute_req(struct scsi_device 
                     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);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to