mirror of
https://github.com/SCST-project/scst.git
synced 2026-08-18 13:16:34 +00:00
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:
+1
-1
@@ -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;
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user