From dae324cd5c1128efb9ba66adaba4c416c0d2daed Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Mon, 11 Nov 2013 13:15:07 +0000 Subject: [PATCH] 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 --- scst/include/scst.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/scst.h b/scst/include/scst.h index 083484b83..9a29b658d 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -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,