Re: [lustre-devel] [PATCH] staging: lustre: split error handling code into multiple labels

2016-04-10 Thread James Simmons
> Instead of using a switch-case statement to find out what kind of error > has just happened, split error handling logic into multiple labels and > jump right into the appropriate label to do the error handling. This way > it is easier to follow different code paths. It also looks easy on the > e

[PATCH] staging: lustre: split error handling code into multiple labels

2016-04-09 Thread Cihangir Akturk
Instead of using a switch-case statement to find out what kind of error has just happened, split error handling logic into multiple labels and jump right into the appropriate label to do the error handling. This way it is easier to follow different code paths. It also looks easy on the eyes. Addit