scst/include/scst.h: Avoid that checkpatch complains about do { } while (0) around a single statement

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5099 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-11-11 13:15:07 +00:00
parent 60f7a2ec4f
commit dae324cd5c

View File

@@ -4211,7 +4211,7 @@ struct sysfs_ops *scst_sysfs_get_sysfs_ops(void);
#endif
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 29) && defined(CONFIG_LOCKDEP)
#define SCST_SET_DEP_MAP(work, dm) do { (work)->dep_map = dm; } while (0)
#define SCST_SET_DEP_MAP(work, dm) ((work)->dep_map = (dm))
#define SCST_KOBJECT_PUT_AND_WAIT(kobj, category, c, dep_map) \
scst_kobject_put_and_wait(kobj, category, c, dep_map)
void scst_kobject_put_and_wait(struct kobject *kobj, const char *category,