Skip to content
Unverified Commit e311ba29 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Christian Brauner
Browse files

chardev: Simplify usage of try_module_get()



try_module_get(NULL) is true, so there is no need to check owner being
NULL.

Signed-off-by: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Link: https://lore.kernel.org/r/20231013132441.1406200-2-u.kleine-koenig@pengutronix.de


Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
parent 2bc5e5e8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment