Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 417f7c59 authored by Bhumika Goyal's avatar Bhumika Goyal Committed by David Teigland
Browse files

dlm: constify kset_uevent_ops structure



Declare kset_uevent_ops structure as const as it is only passed as an
argument to the function kset_create_and_add. This argument is of type
const, so declare the structure as const.

Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarDavid Teigland <teigland@redhat.com>
parent 3b0e761b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ static int dlm_uevent(struct kset *kset, struct kobject *kobj,
	return 0;
}

static struct kset_uevent_ops dlm_uevent_ops = {
static const struct kset_uevent_ops dlm_uevent_ops = {
	.uevent = dlm_uevent,
};