From 3d4486cfb9c87e86ed0695b4dfca84defdbfff45 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Thu, 30 Oct 2008 18:59:23 +0000 Subject: [PATCH] The patch below fixes a few more warnings about lines that exceed 80 columns. This patch has been verified by rereading the patch carefully, and by verifying that SCST source code still compiles fine. Signed-off-by: Bart Van Assche git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@553 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_modisk.c | 5 ++++- scst/src/dev_handlers/scst_vdisk.c | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/scst/src/dev_handlers/scst_modisk.c b/scst/src/dev_handlers/scst_modisk.c index 81483ff32..0d8439e82 100644 --- a/scst/src/dev_handlers/scst_modisk.c +++ b/scst/src/dev_handlers/scst_modisk.c @@ -184,7 +184,10 @@ static int modisk_attach(struct scst_device *dev) goto out_free_params; } - /* Clear any existing UA's and get modisk capacity (modisk block size) */ + /* + * Clear any existing UA's and get modisk capacity (modisk block + * size). + */ memset(cmd, 0, sizeof(cmd)); cmd[0] = READ_CAPACITY; cmd[1] = (dev->scsi_dev->scsi_level <= SCSI_2) ? diff --git a/scst/src/dev_handlers/scst_vdisk.c b/scst/src/dev_handlers/scst_vdisk.c index 8b9adbf5c..471a4c3e0 100644 --- a/scst/src/dev_handlers/scst_vdisk.c +++ b/scst/src/dev_handlers/scst_vdisk.c @@ -465,10 +465,12 @@ static int vdisk_attach(struct scst_device *dev) } #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 19) - if ((fd->f_op == NULL) || (fd->f_op->readv == NULL) || + if ((fd->f_op == NULL) || + (fd->f_op->readv == NULL) || (fd->f_op->writev == NULL)) { #else - if ((fd->f_op == NULL) || (fd->f_op->aio_read == NULL) || + if ((fd->f_op == NULL) || + (fd->f_op->aio_read == NULL) || (fd->f_op->aio_write == NULL)) { #endif PRINT_ERROR("%s", "Wrong f_op or FS doesn't "