Spdk/test/unit/lib/nvme
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
..
nvme_ctrlr_cmd.c build: make nvme.unittest.mk the common unittest .mk include 2018-02-14 10:40:40 -05:00
nvme_ctrlr.c nvme: use AER configuation structure when starting controller 2018-04-10 15:43:38 -04:00
nvme_ns_cmd.c test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
nvme_ns.c test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
nvme_pcie.c test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
nvme_qpair.c test: move test_env.c under test/common/lib 2018-03-29 00:31:24 -04:00
nvme_quirks.c nvme: add debug logs for matched quirks 2018-02-23 10:07:39 -05:00
nvme.c nvme: require trid to be valid in nvme_ctrlr_probe 2018-04-19 17:51:14 -04:00
Makefile test: move NVMe library tests to test/unit 2017-06-21 16:51:12 -04:00