diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2024-01-05 00:57:23 +0100 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2024-02-14 11:24:30 +0100 |
commit | e517293fd72d9044902efae59f05203203a60736 (patch) | |
tree | fb60060b414481d7e126570c343181af883993b1 /net/unix/af_unix.c | |
parent | e1a00373e1305578cd09526aa056940409e6b877 (diff) |
can: m_can: remove redundant check for pm_clock_support
m_can_clk_start() already skip starting the clock when
clock support is disabled, remove the redundant check in
m_can_class_register().
This also solves the imbalance with m_can_clk_stop() that is called
afterward in the same function before the return.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Reviewed-by: Markus Schneider-Pargmann <msp@baylibre.com>
Link: https://lore.kernel.org/all/20240104235723.46931-1-francesco@dolcini.it
[mkl: rebased to net-next/main]
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions