+3
−5
Loading
This is an internal NVMe driver function, so we don't need to allow for the case where trid is NULL. All callers already passed an address of a local variable except the unit tests, which can be trivially fixed. Fixes a static analyzer warning about trid being dereferenced in nvme_transport_ctrlr_construct() before being checked for NULL in the caller. Change-Id: I2bfeb5c92a302093b7c7f2949adcd18baa11855a Signed-off-by:Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/408395 Reviewed-by:
Ben Walker <benjamin.walker@intel.com> Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>