mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-20 06:06:23 +00:00
scst: Avoid that checkpatch complains about suspect code indentation
git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@6621 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1110,11 +1110,11 @@ static int vdisk_get_file_size(const char *filename, bool blockio,
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
if (S_ISREG(inode->i_mode))
|
||||
/* Nothing to do */;
|
||||
else if (S_ISBLK(inode->i_mode))
|
||||
if (S_ISREG(inode->i_mode)) {
|
||||
/* Nothing to do */
|
||||
} else if (S_ISBLK(inode->i_mode)) {
|
||||
inode = inode->i_bdev->bd_inode;
|
||||
else {
|
||||
} else {
|
||||
res = -EINVAL;
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
+9
-9
@@ -3349,7 +3349,7 @@ static int __scst_adjust_sg_get_tail(struct scst_cmd *cmd,
|
||||
TRACE_DBG_FLAG(TRACE_SG_OP|TRACE_MEMORY|TRACE_DEBUG,
|
||||
"cmd %p (tag %llu), sg %p, adjust_len %d, i %d, "
|
||||
"j %d, sg[j].length %d, offs %d",
|
||||
cmd, (long long unsigned int)cmd->tag,
|
||||
cmd, (unsigned long long)cmd->tag,
|
||||
sg, adjust_len, i, j, sg[j].length, offs);
|
||||
|
||||
if (offs == sg[j].length) {
|
||||
@@ -14397,11 +14397,11 @@ int scst_copy_file(const char *src, const char *dest)
|
||||
|
||||
inode = file_inode(file_src);
|
||||
|
||||
if (S_ISREG(inode->i_mode))
|
||||
/* Nothing to do */;
|
||||
else if (S_ISBLK(inode->i_mode))
|
||||
if (S_ISREG(inode->i_mode)) {
|
||||
/* Nothing to do */
|
||||
} else if (S_ISBLK(inode->i_mode)) {
|
||||
inode = inode->i_bdev->bd_inode;
|
||||
else {
|
||||
} else {
|
||||
PRINT_ERROR("Invalid file mode 0x%x", inode->i_mode);
|
||||
res = -EINVAL;
|
||||
set_fs(old_fs);
|
||||
@@ -14596,11 +14596,11 @@ static int __scst_read_file_transactional(const char *file_name,
|
||||
|
||||
inode = file_inode(file);
|
||||
|
||||
if (S_ISREG(inode->i_mode))
|
||||
/* Nothing to do */;
|
||||
else if (S_ISBLK(inode->i_mode))
|
||||
if (S_ISREG(inode->i_mode)) {
|
||||
/* Nothing to do */
|
||||
} else if (S_ISBLK(inode->i_mode)) {
|
||||
inode = inode->i_bdev->bd_inode;
|
||||
else {
|
||||
} else {
|
||||
PRINT_ERROR("Invalid file mode 0x%x", inode->i_mode);
|
||||
res = -EINVAL;
|
||||
goto out_close;
|
||||
|
||||
@@ -694,11 +694,11 @@ static int scst_pr_do_load_device_file(struct scst_device *dev,
|
||||
|
||||
inode = file_inode(file);
|
||||
|
||||
if (S_ISREG(inode->i_mode))
|
||||
/* Nothing to do */;
|
||||
else if (S_ISBLK(inode->i_mode))
|
||||
if (S_ISREG(inode->i_mode)) {
|
||||
/* Nothing to do */
|
||||
} else if (S_ISBLK(inode->i_mode)) {
|
||||
inode = inode->i_bdev->bd_inode;
|
||||
else {
|
||||
} else {
|
||||
PRINT_ERROR("Invalid file mode 0x%x", inode->i_mode);
|
||||
goto out_close;
|
||||
}
|
||||
|
||||
@@ -3734,9 +3734,9 @@ static int scst_exec_check_blocking(struct scst_cmd **active_cmd)
|
||||
cmd->state = SCST_CMD_STATE_LOCAL_EXEC;
|
||||
|
||||
rc = scst_do_local_exec(cmd);
|
||||
if (likely(rc == SCST_EXEC_NOT_COMPLETED))
|
||||
/* Nothing to do */;
|
||||
else {
|
||||
if (likely(rc == SCST_EXEC_NOT_COMPLETED)) {
|
||||
/* Nothing to do */
|
||||
} else {
|
||||
sBUG_ON(rc != SCST_EXEC_COMPLETED);
|
||||
goto done;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user