HomeFreeBSD

CID 1332000: Logically dead code in sys/dev/pms/RefTisa/tisa/sassata/sas/ini/it…

Description

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.

Reported by: Coverity
Reviewed by: daniel.william.ryan_gmail.com, vangyzen
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D19165

Details

Committed
dabFeb 22 2019, 6:43 PM
Reviewer
daniel.william.ryan_gmail.com
Differential Revision
D19165: CID 1332000: Logically dead code in sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c
Parents
rS344472: MFC r333131:
Branches
Unknown
Tags
Unknown