MFC r344473:

CID 1332000: Logically dead code in sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c

A pointer is first tested for NULL. If non-NULL, another pointer is
set equal to the first. The second pointer is then checked for NULL
and an error path taken if so. This second test and the associated
path is dead code as the pointer value, having just been checked for
NULL, cannot be NULL at this point. Remove the dead code.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
David Bright 2019-02-27 22:29:37 +00:00
parent 9ae23c37e6
commit b82d523565
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/stable/10/; revision=344646

View File

@ -1820,12 +1820,6 @@ tiNumOfLunIOCTLreq(
break;
}
tdIORequestBody = (tdIORequestBody_t *)tiRequestBody;
if(tdIORequestBody == agNULL)
{
status = IOCTL_CALL_FAIL;
break;
}
tdIORequestBody->tiIORequest = tiIORequest;
/* save context if we need to abort later */