From: Jonas Rabenstein Date: Thu, 14 Feb 2019 00:15:55 +0000 (+0100) Subject: block: sed-opal: use correct macro for method length X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=1b6b75b0137fd2b5af533eceba5f5db62b1c45b0;p=openwrt%2Fstaging%2Fblogic.git block: sed-opal: use correct macro for method length Also the values of OPAL_UID_LENGTH and OPAL_METHOD_LENGTH are the same, it is weird to use OPAL_UID_LENGTH for the definition of the methods. Signed-off-by: Jonas Rabenstein Signed-off-by: David Kozub Reviewed-by: Scott Bauer Reviewed-by: Christoph Hellwig Reviewed-by: Jon Derrick Signed-off-by: Jens Axboe --- diff --git a/block/sed-opal.c b/block/sed-opal.c index d12a910e06cb..e59ae364f1ef 100644 --- a/block/sed-opal.c +++ b/block/sed-opal.c @@ -181,7 +181,7 @@ static const u8 opaluid[][OPAL_UID_LENGTH] = { * Derived from: TCG_Storage_Architecture_Core_Spec_v2.01_r1.00 * Section: 6.3 Assigned UIDs */ -static const u8 opalmethod[][OPAL_UID_LENGTH] = { +static const u8 opalmethod[][OPAL_METHOD_LENGTH] = { [OPAL_PROPERTIES] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0xff, 0x01 }, [OPAL_STARTSESSION] =