master - tidy: else after continue
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=4ef6cfc882fd89ee23a12be11d631b691f7e8ddf Commit: 4ef6cfc882fd89ee23a12be11d631b691f7e8ddf Parent: 0bf836aa14f98eb83969a6e81695a024f56a5eb5 Author: Zdenek Kabelac <[email protected]> AuthorDate: Wed Jul 19 23:12:48 2017 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Thu Jul 20 11:18:29 2017 +0200
tidy: else after continue
Similar as with 'else' after 'return' unindent whole block for better readability of code.
--- lib/activate/activate.c | 8 ++-- lib/format1/import-extents.c | 58 +++++++++++++++++------------------ lib/metadata/lv_manip.c | 69 +++++++++++++++++++++-------------------- 3 files changed, 67 insertions(+), 68 deletions(-)
lib/activate/activate.c +4 -4
@@ -150,15 +150,15 @@ static int _lv_passes_volumes_filter(struct cmd_context *cmd, const struct logic || str_list_match_list(&cmd->tags, &lv->vg->tags, NULL))return 1 ; - else - continue; + +continue ; }/* If supplied tag matches LV or VG tag, activate */ if (str_list_match_item (&lv->tags, str) ||str_list_match_item (&lv->vg->tags, str))return 1 ; -else -continue ; + +continue ; }/* If supplied name is vgname[/lvname] */
lib/format1/import-extents.c +28 -30
65 lines not on this page · raw message
lib/metadata/lv_manip.c +35 -34
88 lines not on this page · raw message