opal: Fix benign gcc warning for possible uninitialized value.

This commit is contained in:
Milan Broz
2023-12-19 13:40:29 +01:00
parent cd576666fc
commit f87f6226aa

View File

@@ -290,7 +290,7 @@ static int opal_range_check_attributes_fd(struct crypt_device *cd,
{
int r;
struct opal_lr_status *lrs;
uint32_t opal_block_bytes;
uint32_t opal_block_bytes = 0;
uint64_t offset, length;
bool read_locked, write_locked;