From: Greg Kroah-Hartman Date: Wed, 29 Mar 2023 06:01:27 +0000 (+0200) Subject: mISDN: remove unneeded mISDN_class_release() X-Git-Tag: v6.4-rc1~115^2~25 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9467af61bf6a92bb0e2f783fcfc379f943fa4e0d;p=thirdparty%2Fkernel%2Flinux.git mISDN: remove unneeded mISDN_class_release() The mISDN_class_release() is not needed at all, as the class structure is static, and it does not actually do anything either, so it is safe to remove as struct class does not require a release callback. Cc: Karsten Keil Cc: netdev@vger.kernel.org Reviewed-by: Simon Horman Signed-off-by: Greg Kroah-Hartman Link: https://lore.kernel.org/r/20230329060127.2688492-1-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/isdn/mISDN/core.c b/drivers/isdn/mISDN/core.c index f5989c9907eed..ab8513a7acd52 100644 --- a/drivers/isdn/mISDN/core.c +++ b/drivers/isdn/mISDN/core.c @@ -152,17 +152,11 @@ static int mISDN_uevent(const struct device *dev, struct kobj_uevent_env *env) return 0; } -static void mISDN_class_release(struct class *cls) -{ - /* do nothing, it's static */ -} - static struct class mISDN_class = { .name = "mISDN", .dev_uevent = mISDN_uevent, .dev_groups = mISDN_groups, .dev_release = mISDN_dev_release, - .class_release = mISDN_class_release, }; static int