block/sed: Add helper to qualify response tokens
authorJon Derrick <jonathan.derrick@intel.com>
Tue, 21 Feb 2017 18:59:14 +0000 (11:59 -0700)
committerJens Axboe <axboe@fb.com>
Wed, 22 Feb 2017 18:54:49 +0000 (11:54 -0700)
commitcccb92417d447172c4653876f6cd4b04c29d7905
tree7947631e4dae50b13821477d359fa685bea4105b
parentaedb6e2411baf242fd0faf95bd3ff0dc62ee1fa5
block/sed: Add helper to qualify response tokens

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 <jonathan.derrick@intel.com>
Reviewed-by: Scott Bauer <scott.bauer@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/sed-opal.c