[PATCHv2 2/4] block/sed: Add helper to qualify response tokens

2017-02-15 Thread Jon Derrick
Add helper which verifies the response token is valid and matches the expected value. Merges token_type and response_get_token. Signed-off-by: Jon Derrick --- block/sed-opal.c | 61 +++- 1 file changed, 25

[PATCHv2 2/4] block/sed: Add helper to qualify response tokens

2017-02-15 Thread Jon Derrick
Add helper which verifies the response token is valid and matches the expected value. Merges token_type and response_get_token. Signed-off-by: Jon Derrick --- block/sed-opal.c | 61 +++- 1 file changed, 25 insertions(+), 36 deletions(-) diff