]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: unisys: visorbus: clean up visorchannel_clear
authorDavid Kershner <david.kershner@unisys.com>
Wed, 9 Mar 2016 02:28:28 +0000 (21:28 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Mar 2016 03:27:39 +0000 (19:27 -0800)
Goto label was ambiguous change to out_free_page to signify that
we will always go through the path even on success.

Signed-off-by: David Kershner <david.kershner@unisys.com>
Signed-off-by: Timothy Sell <timothy.sell@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorchannel.c

index ba26b54432110edde79a293e586b9014e753c478..b68a904ac6177bcc672be2ccf8f3952f8b7f2c0e 100644 (file)
@@ -293,14 +293,14 @@ visorchannel_clear(struct visorchannel *channel, ulong offset, u8 ch,
                err = visorchannel_write(channel, offset + written,
                                         buf, thisbytes);
                if (err)
-                       goto cleanup;
+                       goto out_free_page;
 
                written += thisbytes;
                nbytes -= thisbytes;
        }
        err = 0;
 
-cleanup:
+out_free_page:
        free_page((unsigned long)buf);
        return err;
 }