From cc9b53ec25cc4c1cabba0c6ceb277eaca82ff303 Mon Sep 17 00:00:00 2001 From: Jim Harris Date: Thu, 30 Mar 2017 08:28:43 -0700 Subject: [PATCH] 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 Change-Id: Id53a17bcd1f4ec51f35a954ec0f6e6ea9803086e --- test/lib/scsi/scsi_bdev/scsi_bdev_ut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/lib/scsi/scsi_bdev/scsi_bdev_ut.c b/test/lib/scsi/scsi_bdev/scsi_bdev_ut.c index e3b8929579..7791f0a39d 100644 --- a/test/lib/scsi/scsi_bdev/scsi_bdev_ut.c +++ b/test/lib/scsi/scsi_bdev/scsi_bdev_ut.c @@ -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;