can: cc770: cc770_isa_probe(): add missing free_cc770dev()
authorZhang Changzhong <zhangchangzhong@huawei.com>
Fri, 11 Nov 2022 12:09:16 +0000 (20:09 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:15:41 +0000 (11:15 +0100)
commita88b8ffbcd39496cf47ff822e16d40573eccb4ab
tree5e6488da040900e7fcf4aafda6cc6e88e1233dc0
parent649ae29357e29e8f9c3cd09245b7fa493027a72f
can: cc770: cc770_isa_probe(): add missing free_cc770dev()

[ Upstream commit 62ec89e74099a3d6995988ed9f2f996b368417ec ]

Add the missing free_cc770dev() before return from cc770_isa_probe()
in the register_cc770dev() error handling case.

In addition, remove blanks before goto labels.

Fixes: 7e02e5433e00 ("can: cc770: legacy CC770 ISA bus driver")
Signed-off-by: Zhang Changzhong <zhangchangzhong@huawei.com>
Link: https://lore.kernel.org/all/1668168557-6024-1-git-send-email-zhangchangzhong@huawei.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/can/cc770/cc770_isa.c