greybus: svc: clean up hello error path
authorJohan Hovold <johan@kernel.org>
Wed, 2 Feb 2022 11:33:46 +0000 (12:33 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 14:27:44 +0000 (15:27 +0100)
commit5f648e00f50ff8b04a4cfe13d58a0227bc2b56bb
treedf1c904bd28ed4a749b1ccdb0732b4741baaba12
parent5f8583a3b7552092582a92e7bbd2153319929ad7
greybus: svc: clean up hello error path

While currently safe, it is unnecessary (and confusing) to try to
destroy the watchdog when watchdog creation fails.

Change the corresponding error path to only deregister the svc.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20220202113347.1288-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/greybus/svc.c