mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-17 02:31:27 +00:00
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:
@@ -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) ?
|
||||
|
||||
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user