aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/isdn/capi/capilib.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/isdn/capi/capilib.c')
-rw-r--r--drivers/isdn/capi/capilib.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/isdn/capi/capilib.c b/drivers/isdn/capi/capilib.c
index 0b041df2108c..33361f833c01 100644
--- a/drivers/isdn/capi/capilib.c
+++ b/drivers/isdn/capi/capilib.c
@@ -4,9 +4,9 @@
4#include <linux/module.h> 4#include <linux/module.h>
5#include <linux/isdn/capilli.h> 5#include <linux/isdn/capilli.h>
6 6
7#define DBG(format, arg...) do { \ 7#define DBG(format, arg...) do { \
8printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \ 8 printk(KERN_DEBUG "%s: " format "\n" , __func__ , ## arg); \
9} while (0) 9 } while (0)
10 10
11struct capilib_msgidqueue { 11struct capilib_msgidqueue {
12 struct capilib_msgidqueue *next; 12 struct capilib_msgidqueue *next;
@@ -28,7 +28,7 @@ struct capilib_ncci {
28// --------------------------------------------------------------------------- 28// ---------------------------------------------------------------------------
29// NCCI Handling 29// NCCI Handling
30 30
31static inline void mq_init(struct capilib_ncci * np) 31static inline void mq_init(struct capilib_ncci *np)
32{ 32{
33 u_int i; 33 u_int i;
34 np->msgidqueue = NULL; 34 np->msgidqueue = NULL;
@@ -42,7 +42,7 @@ static inline void mq_init(struct capilib_ncci * np)
42 } 42 }
43} 43}
44 44
45static inline int mq_enqueue(struct capilib_ncci * np, u16 msgid) 45static inline int mq_enqueue(struct capilib_ncci *np, u16 msgid)
46{ 46{
47 struct capilib_msgidqueue *mq; 47 struct capilib_msgidqueue *mq;
48 if ((mq = np->msgidfree) == NULL) 48 if ((mq = np->msgidfree) == NULL)
@@ -59,7 +59,7 @@ static inline int mq_enqueue(struct capilib_ncci * np, u16 msgid)
59 return 1; 59 return 1;
60} 60}
61 61
62static inline int mq_dequeue(struct capilib_ncci * np, u16 msgid) 62static inline int mq_dequeue(struct capilib_ncci *np, u16 msgid)
63{ 63{
64 struct capilib_msgidqueue **pp; 64 struct capilib_msgidqueue **pp;
65 for (pp = &np->msgidqueue; *pp; pp = &(*pp)->next) { 65 for (pp = &np->msgidqueue; *pp; pp = &(*pp)->next) {
@@ -165,7 +165,7 @@ u16 capilib_data_b3_req(struct list_head *head, u16 applid, u32 ncci, u16 msgid)
165 continue; 165 continue;
166 if (np->ncci != ncci) 166 if (np->ncci != ncci)
167 continue; 167 continue;
168 168
169 if (mq_enqueue(np, msgid) == 0) 169 if (mq_enqueue(np, msgid) == 0)
170 return CAPI_SENDQUEUEFULL; 170 return CAPI_SENDQUEUEFULL;
171 171
@@ -188,7 +188,7 @@ void capilib_data_b3_conf(struct list_head *head, u16 applid, u32 ncci, u16 msgi
188 continue; 188 continue;
189 if (np->ncci != ncci) 189 if (np->ncci != ncci)
190 continue; 190 continue;
191 191
192 if (mq_dequeue(np, msgid) == 0) { 192 if (mq_dequeue(np, msgid) == 0) {
193 printk(KERN_ERR "kcapi: msgid %hu ncci 0x%x not on queue\n", 193 printk(KERN_ERR "kcapi: msgid %hu ncci 0x%x not on queue\n",
194 msgid, ncci); 194 msgid, ncci);