[PATCH v2 3/8] block: sed-opal: unify cmd start and finalize

2018-03-14 Thread Jonas Rabenstein
Every step starts with resetting the cmd buffer as well as the comid and constructs the appropriate OPAL_CALL command. Consequently, those actions may be combined into one generic function. Signed-off-by: Jonas Rabenstein --- block/sed-opal.c | 250

[PATCH v2 3/8] block: sed-opal: unify cmd start and finalize

2018-03-14 Thread Jonas Rabenstein
Every step starts with resetting the cmd buffer as well as the comid and constructs the appropriate OPAL_CALL command. Consequently, those actions may be combined into one generic function. Signed-off-by: Jonas Rabenstein --- block/sed-opal.c | 250