Fixes checkpatch errors notices by Bart Van Assche <bart.vanassche@gmail.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@668 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2009-02-09 20:08:14 +00:00
parent 293c0ee1a3
commit 0319c5c81c
3 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1506,7 +1506,7 @@ struct scst_tgt_dev {
/*
* Set if the prev cmd was ORDERED. Size must allow unprotected
* modifications independant to the neighbour fields.
* modifications independant to the neighbour fields.
*/
unsigned long prev_cmd_ordered;
+2 -2
View File
@@ -2332,9 +2332,9 @@ static int dev_user_attach_tgt(struct scst_tgt_dev *tgt_dev)
* memory for SCST local commands, like REPORT LUNS, where there is no
* corresponding ucmd. Otherwise we will crash in dev_user_alloc_sg().
*/
if (test_bit(SCST_TGT_DEV_CLUST_POOL, &tgt_dev->tgt_dev_flags))
if (test_bit(SCST_TGT_DEV_CLUST_POOL, &tgt_dev->tgt_dev_flags))
tgt_dev->dh_priv = dev->pool_clust;
else
else
tgt_dev->dh_priv = dev->pool;
ucmd = dev_user_alloc_ucmd(dev, GFP_KERNEL);
+2 -2
View File
@@ -39,7 +39,7 @@ static struct scst_sgv_pools_manager sgv_pools_mgr;
static inline bool sgv_pool_clustered(const struct sgv_pool *pool)
{
return (pool->clustering_type != sgv_no_clustering);
return pool->clustering_type != sgv_no_clustering;
}
void scst_sgv_pool_use_norm(struct scst_tgt_dev *tgt_dev)
@@ -996,7 +996,7 @@ int sgv_pool_init(struct sgv_pool *pool, const char *name,
size = sizeof(*obj) + (1 << i) *
(sizeof(obj->sg_entries[0]) +
((clustering_type != sgv_no_clustering) ?
sizeof(obj->trans_tbl[0]) : 0));
sizeof(obj->trans_tbl[0]) : 0));
} else if (i <= sgv_pools_mgr.sgv_max_trans_order) {
/*
* sgv ie sg_entries is allocated outside object, but