提交 808cbb68 编写于 作者: D Dan Carpenter 提交者: James Bottomley

[SCSI] pm80xx: remove unneeded NULL check

Coccinelle complains about the inconsistent NULL checking on "t".  It
turns out the check isn't needed because we verified that "t" is
non-NULL at the start of the function.
Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NAnand Kumar Santhanam <AnandKumar.Santhanam@pmcs.com>
Signed-off-by: NJames Bottomley <JBottomley@Parallels.com>
上级 e73823f7
......@@ -3740,7 +3740,7 @@ int pm8001_mpi_task_abort_resp(struct pm8001_hba_info *pm8001_ha, void *piomb)
pm8001_ccb_task_free(pm8001_ha, t, ccb, tag);
mb();
if ((pm8001_dev->id & NCQ_ABORT_ALL_FLAG) && t) {
if (pm8001_dev->id & NCQ_ABORT_ALL_FLAG) {
pm8001_tag_free(pm8001_ha, tag);
sas_free_task(t);
/* clear the flag */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册