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: Jim Harris <james.r.harris@intel.com> Change-Id: Id53a17bcd1f4ec51f35a954ec0f6e6ea9803086e
This commit is contained in:
parent
425b902bc0
commit
cc9b53ec25
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user