simplify hv_clear
authorDavid Mitchell <davem@iabyn.com>
Tue, 26 Apr 2011 15:07:50 +0000 (16:07 +0100)
committerDavid Mitchell <davem@iabyn.com>
Thu, 19 May 2011 13:49:42 +0000 (14:49 +0100)
commitafbbf215a9f8470ac637c1eddc1d4f0eaa8ab090
tree58f9dfc15d0bb82c174c60aba2928bec354dc8e3
parentf126b75f4148fff81c891eb4f3eb7a4e6fca9ee3
simplify hv_clear

Don't use a goto when an else will do

i.e. replace

    if (..) {
        A
        goto reset
    }
    B
    reset:

with

    if (..) {
        A
    }
    else {
        B
    }
hv.c