Microoptimization

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5078 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2013-10-23 04:35:57 +00:00
parent 8a09d515b0
commit 79d74f0446

View File

@@ -5629,7 +5629,7 @@ int scst_alloc_space(struct scst_cmd *cmd)
cmd->sg = sgv_pool_alloc(tgt_dev->pool, cmd->bufflen, gfp_mask, flags,
&cmd->sg_cnt, &cmd->sgv, &cmd->dev->dev_mem_lim, NULL);
if (cmd->sg == NULL)
if (unlikely(cmd->sg == NULL))
goto out;
if (unlikely(cmd->sg_cnt > tgt_dev->max_sg_cnt))
@@ -5642,7 +5642,7 @@ int scst_alloc_space(struct scst_cmd *cmd)
cmd->out_sg = sgv_pool_alloc(tgt_dev->pool, cmd->out_bufflen, gfp_mask,
flags, &cmd->out_sg_cnt, &cmd->out_sgv,
&cmd->dev->dev_mem_lim, NULL);
if (cmd->out_sg == NULL)
if (unlikely(cmd->out_sg == NULL))
goto out_sg_free;
if (unlikely(cmd->out_sg_cnt > tgt_dev->max_sg_cnt))