staging: qlge: Remove gotos from ql_set_mac_addr_reg
authorRylan Dmello <mail@rylan.coffee>
Thu, 30 Apr 2020 01:33:04 +0000 (21:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 10:20:40 +0000 (12:20 +0200)
commit7c40ba652cf706789a19bfe38c551d9782ab6ed4
treea5d860c5bef5ac42123b4652e27366582a3cbb4d
parent7d9a39e01d8c8c719590815aaeeda5dbf6e7fae5
staging: qlge: Remove gotos from ql_set_mac_addr_reg

As suggested by Joe Perches, this patch removes the 'exit' label
from the ql_set_mac_addr_reg function and replaces the goto
statements with break statements.

Signed-off-by: Rylan Dmello <mail@rylan.coffee>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/a6f485e43eb55e8fdc64a7a346cb0419b55c3cb6.1588209862.git.mail@rylan.coffee
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/qlge/qlge_main.c