scsi: mpi3mr: Delete unnecessary NULL check

The "mrioc->intr_info" pointer can't be NULL, but if it could then the
second iteration through the loop would Oops.  Let's delete the confusing
and impossible NULL check.

Link: https://lore.kernel.org/r/YMCJKgykDYtyvY44@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
Dan Carpenter 2021-06-09 12:26:02 +03:00 коммит произвёл Martin K. Petersen
Родитель d3d61f9c8c
Коммит d46bdecd9f
1 изменённых файлов: 1 добавлений и 2 удалений

Просмотреть файл

@ -3583,8 +3583,7 @@ static void mpi3mr_free_mem(struct mpi3mr_ioc *mrioc)
for (i = 0; i < mrioc->intr_info_count; i++) {
intr_info = mrioc->intr_info + i;
if (intr_info)
intr_info->op_reply_q = NULL;
intr_info->op_reply_q = NULL;
}
kfree(mrioc->req_qinfo);