Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2019 22:29:37 +0000 (UTC)
From:      David Bright <dab@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r344646 - stable/10/sys/dev/pms/RefTisa/tisa/sassata/sas/ini
Message-ID:  <201902272229.x1RMTcKx069466@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dab
Date: Wed Feb 27 22:29:37 2019
New Revision: 344646
URL: https://svnweb.freebsd.org/changeset/base/344646

Log:
  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

Modified:
  stable/10/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c
==============================================================================
--- stable/10/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c	Wed Feb 27 22:29:26 2019	(r344645)
+++ stable/10/sys/dev/pms/RefTisa/tisa/sassata/sas/ini/itdio.c	Wed Feb 27 22:29:37 2019	(r344646)
@@ -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 */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201902272229.x1RMTcKx069466>