[libvirt] [PATCH 3/4] storage: Avoid unnecessary ternary operators and refactor the code

2013-06-05 Thread Peter Krempa
Setting of local variables in virStorageBackendCreateQemuImgCmd was unnecessarily cluttered with ternary operators and repeated testing of of conditions. This patch refactors the function to use if statements and optimizes the code flow resulting in a line count reduction. ---

Re: [libvirt] [PATCH 3/4] storage: Avoid unnecessary ternary operators and refactor the code

2013-06-05 Thread Ján Tomko
On 06/05/2013 10:59 AM, Peter Krempa wrote: Setting of local variables in virStorageBackendCreateQemuImgCmd was unnecessarily cluttered with ternary operators and repeated testing of of conditions. This patch refactors the function to use if statements and optimizes the code flow resulting