Commit cc9b53ec authored by Jim Harris's avatar Jim Harris
Browse files

test/scsi: initialize blocklen parameter for bdev



This parameter is not actually used by the unit
tests using the bdev, but setting it to a non-zero
value silences a couple of static analysis errors.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: Id53a17bcd1f4ec51f35a954ec0f6e6ea9803086e
parent 425b902b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -383,7 +383,7 @@ inquiry_evpd_test(void)
static void
inquiry_standard_test(void)
{
	struct spdk_bdev bdev = {};
	struct spdk_bdev bdev = { .blocklen = 512 };
	struct spdk_scsi_task task;
	struct spdk_scsi_lun lun;
	struct spdk_scsi_dev dev;
@@ -420,7 +420,7 @@ inquiry_standard_test(void)
static void
_inquiry_overflow_test(uint8_t alloc_len)
{
	struct spdk_bdev bdev = {};
	struct spdk_bdev bdev = { .blocklen = 512 };
	struct spdk_scsi_task task;
	struct spdk_scsi_lun lun;
	struct spdk_scsi_dev dev;