summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-01-25 21:17:10 +0000
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>2012-01-25 21:17:10 +0000
commitf14814863c28db34b341e68cc97c8c70d539d021 (patch)
treefc413b2b579706361d44a8c70dea913fc1fee90a /include
parentee996b390cdd9145fb1beda37fbef888217533f3 (diff)
remove a duplicate dev_set_name()
Remove duplicate definition from dahdi-sysfs.c Signed-off-by: Oron Peled <oron.peled@xorcom.com> Acked-by: Tzafrir Cohen <tzafrir.cohen@xorcom.com> git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10447 a0bf4364-ded3-4de4-8d8a-66a801d63aff
Diffstat (limited to 'include')
-rw-r--r--include/dahdi/kernel.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/dahdi/kernel.h b/include/dahdi/kernel.h
index 818df60..f141562 100644
--- a/include/dahdi/kernel.h
+++ b/include/dahdi/kernel.h
@@ -101,8 +101,10 @@
# else
#define dev_name(dev) ((dev)->bus_id)
# endif
-#define dev_set_name(dev, format, ...) \
- snprintf((dev)->bus_id, BUS_ID_SIZE, format, ## __VA_ARGS__);
+#define dev_set_name(dev, fmt, ...) \
+ do { \
+ snprintf((dev)->bus_id, BUS_ID_SIZE, fmt, ## __VA_ARGS__); \
+ } while (0)
#endif
/*! Default chunk size for conferences and such -- static right now, might make