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 <bart.vanassche@gmail.com>



git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@553 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2008-10-30 18:59:23 +00:00
parent 75d2a4b1a2
commit 3d4486cfb9
2 changed files with 8 additions and 3 deletions

View File

@@ -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) ?

View File

@@ -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 "