Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sysfs: drop semicolon from to_sysfs_dirent() definition

The expansion of to_sysfs_dirent() contains an unncessary trailing
semicolon making it impossible to use in the middle of statements.
Drop it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tejun Heo and committed by
Greg Kroah-Hartman
bcac3769 4a10c2ac

+1 -1
+1 -1
fs/sysfs/dir.c
··· 28 28 DEFINE_MUTEX(sysfs_mutex); 29 29 DEFINE_SPINLOCK(sysfs_assoc_lock); 30 30 31 - #define to_sysfs_dirent(X) rb_entry((X), struct sysfs_dirent, s_rb); 31 + #define to_sysfs_dirent(X) rb_entry((X), struct sysfs_dirent, s_rb) 32 32 33 33 static DEFINE_SPINLOCK(sysfs_ino_lock); 34 34 static DEFINE_IDA(sysfs_ino_ida);