Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
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
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment