can: gs_usb: gs_can_open(): allow loopback and listen only at the same time
authorMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 29 Sep 2022 07:58:30 +0000 (09:58 +0200)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Thu, 20 Oct 2022 09:57:40 +0000 (11:57 +0200)
commitdeb8534e8ef3905b5a977486d11d4d36b4f94347
treee704403a5d02396bf45dfb129b605801a0bdf7ff
parentacff76fa45b487a9dd7573a6f4d34daca6f0c045
can: gs_usb: gs_can_open(): allow loopback and listen only at the same time

There's no reason why loopback and listen only should not be allowed
at the same time. Replace the "else if" by "if" to reflect this in the
code.

Link: https://lore.kernel.org/all/20221019221016.1659260-2-mkl@pengutronix.de
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/usb/gs_usb.c