Re: [PATCH v2] hv: utils: enhance code for human read

2019-03-25 Thread Jesús Castro
On Mon, Mar 11, 2019 at 06:29:49PM -0600, Jesús Castro wrote: > The if/else block from hvt_op_open function can be written > as a switch/case block, and the bool issue_reset variable > is avoided. > > No functional change made. > > Suggested-by: Joe Perches > Signed-off-by: Jesús Castro > ---

[PATCH v2] hv: utils: enhance code for human read

2019-03-11 Thread Jesús Castro
The if/else block from hvt_op_open function can be written as a switch/case block, and the bool issue_reset variable is avoided. No functional change made. Suggested-by: Joe Perches Signed-off-by: Jesús Castro --- v2: Refactoring hvt_op_open function with a switch/case block. Change subje