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

Commit 4106ecaf authored by Tejun Heo's avatar Tejun Heo Committed by Linus Torvalds
Browse files

idr: cosmetic updates to struct / initializer definitions



* Tab align fields like a normal person.

* Drop the unnecessary 0 inits from IDR_INIT().

This patch is purely cosmetic.

Signed-off-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent fe6e24ec
Loading
Loading
Loading
Loading
+12 −16
Original line number Diff line number Diff line
@@ -59,17 +59,13 @@ struct idr_layer {
struct idr {
	struct idr_layer __rcu	*top;
	struct idr_layer	*id_free;
	int		  layers; /* only valid without concurrent changes */
	int			layers;	/* only valid w/o concurrent changes */
	int			id_free_cnt;
	spinlock_t		lock;
};

#define IDR_INIT(name)							\
{									\
	.top		= NULL,					\
	.id_free	= NULL,					\
	.layers 	= 0,					\
	.id_free_cnt	= 0,					\
	.lock			= __SPIN_LOCK_UNLOCKED(name.lock),	\
}
#define DEFINE_IDR(name)	struct idr name = IDR_INIT(name)