Spdk/test
Daniel Verkamp 3fa7c33ac1 nvme: require trid to be valid in nvme_ctrlr_probe
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>
2018-04-19 17:51:14 -04:00
..
app test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
bdev test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
blobfs blobfs/fuse: account for leading slash in filenames 2018-04-11 16:03:14 -04:00
blobstore autotest_common.sh: move to test/common 2018-02-27 20:37:27 -05:00
common test/rbd: add configurable monitoring IP address for ceph 2018-04-17 13:55:44 -04:00
cpp_headers build: add @: to remaining 'all' targets 2018-02-14 17:38:25 -05:00
env test: move lib/env up one level 2018-03-29 00:31:24 -04:00
event test: move lib/event up one directory 2018-03-29 00:31:24 -04:00
ioat test: move lib/ioat up one directory 2018-03-27 00:46:52 -04:00
iscsi_tgt test/iscsi_tgt: merge the two steps of running fio_remote_nvme.sh 2018-04-17 14:27:25 -04:00
lvol test/lvol: Snapshot and clone test cases for lvol feature. 2018-04-12 19:29:00 -04:00
nvme test/nvme/aer: add changed namespace list log test 2018-04-11 16:05:09 -04:00
nvmf test/nvmf: confirm kernel finds NVMe-oF namespaces 2018-04-16 19:25:37 -04:00
pmem bdev/pmem: change all NVML strings to PMDK 2018-04-07 00:07:57 -04:00
unit nvme: require trid to be valid in nvme_ctrlr_probe 2018-04-19 17:51:14 -04:00
vhost test/virtio: enable qemu virtio-scsi-pci device 2018-04-18 15:34:34 -04:00
Makefile test: move lib/json up to test app directory 2018-03-29 00:31:24 -04:00
spdk_cunit.h scripts/check_format: check for spaces before tabs 2018-03-05 11:09:13 -05:00