Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
linux
Commits
6afb7be2
Commit
6afb7be2
authored
Oct 29, 2002
by
Kai Germaschewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ISDN: Remove rcv_waitq/snd_waitq
The arrays were only allocated and initialized, never used.
parent
851785c4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
30 deletions
+3
-30
drivers/isdn/i4l/isdn_audio.c
drivers/isdn/i4l/isdn_audio.c
+0
-2
drivers/isdn/i4l/isdn_common.c
drivers/isdn/i4l/isdn_common.c
+3
-26
include/linux/isdn.h
include/linux/isdn.h
+0
-2
No files found.
drivers/isdn/i4l/isdn_audio.c
View file @
6afb7be2
...
...
@@ -570,7 +570,6 @@ isdn_audio_eval_dtmf(modem_info * info)
/* Schedule dequeuing */
if
((
dev
->
modempoll
)
&&
(
info
->
rcvsched
))
isdn_timer_ctrl
(
ISDN_TIMER_MODEMREAD
,
1
);
wake_up_interruptible
(
&
dev
->
drv
[
di
]
->
rcv_waitq
[
ch
]);
}
else
kfree_skb
(
skb
);
s
->
last
=
what
;
...
...
@@ -691,7 +690,6 @@ isdn_audio_put_dle_code(modem_info * info, u_char code)
/* Schedule dequeuing */
if
((
dev
->
modempoll
)
&&
(
info
->
rcvsched
))
isdn_timer_ctrl
(
ISDN_TIMER_MODEMREAD
,
1
);
wake_up_interruptible
(
&
dev
->
drv
[
di
]
->
rcv_waitq
[
ch
]);
}
void
...
...
drivers/isdn/i4l/isdn_common.c
View file @
6afb7be2
...
...
@@ -319,12 +319,9 @@ isdn_receive_skb_callback(int di, int channel, struct sk_buff *skb)
}
/* No network-device found, deliver to tty or raw-channel */
if
(
skb
->
len
)
{
if
(
isdn_tty_rcv_skb
(
i
,
di
,
channel
,
skb
))
return
;
wake_up_interruptible
(
&
dev
->
drv
[
di
]
->
rcv_waitq
[
channel
]);
}
else
dev_kfree_skb
(
skb
);
if
(
isdn_tty_rcv_skb
(
i
,
di
,
channel
,
skb
))
return
;
dev_kfree_skb
(
skb
);
}
/*
...
...
@@ -436,7 +433,6 @@ isdn_status_callback(isdn_ctrl * c)
return
0
;
if
(
isdn_tty_stat_callback
(
i
,
c
))
return
0
;
wake_up_interruptible
(
&
dev
->
drv
[
di
]
->
snd_waitq
[
c
->
arg
]);
break
;
case
ISDN_STAT_STAVAIL
:
save_flags
(
flags
);
...
...
@@ -658,7 +654,6 @@ isdn_status_callback(isdn_ctrl * c)
for
(
i
=
0
;
i
<
dev
->
drv
[
di
]
->
channels
;
i
++
)
skb_queue_purge
(
&
dev
->
drv
[
di
]
->
rpqueue
[
i
]);
kfree
(
dev
->
drv
[
di
]
->
rpqueue
);
kfree
(
dev
->
drv
[
di
]
->
rcv_waitq
);
kfree
(
dev
->
drv
[
di
]);
dev
->
drv
[
di
]
=
NULL
;
dev
->
drvid
[
di
][
0
]
=
'\0'
;
...
...
@@ -1701,24 +1696,6 @@ isdn_add_channels(driver *d, int drvidx, int n, int adding)
skb_queue_head_init
(
&
d
->
rpqueue
[
j
]);
}
if
((
adding
)
&&
(
d
->
rcv_waitq
))
kfree
(
d
->
rcv_waitq
);
d
->
rcv_waitq
=
kmalloc
(
sizeof
(
wait_queue_head_t
)
*
2
*
m
,
GFP_KERNEL
);
if
(
!
d
->
rcv_waitq
)
{
printk
(
KERN_WARNING
"register_isdn: Could not alloc rcv_waitq
\n
"
);
if
(
!
adding
)
{
kfree
(
d
->
rpqueue
);
kfree
(
d
->
rcvcount
);
kfree
(
d
->
rcverr
);
}
return
-
1
;
}
d
->
snd_waitq
=
d
->
rcv_waitq
+
m
;
for
(
j
=
0
;
j
<
m
;
j
++
)
{
init_waitqueue_head
(
&
d
->
rcv_waitq
[
j
]);
init_waitqueue_head
(
&
d
->
snd_waitq
[
j
]);
}
dev
->
channels
+=
n
;
save_flags
(
flags
);
cli
();
...
...
include/linux/isdn.h
View file @
6afb7be2
...
...
@@ -434,8 +434,6 @@ typedef struct {
unsigned
long
DLEflag
;
/* Flags: Insert DLE at next read */
#endif
struct
sk_buff_head
*
rpqueue
;
/* Pointers to start of Rcv-Queue */
wait_queue_head_t
*
rcv_waitq
;
/* Wait-Queues for B-Channel-Reads */
wait_queue_head_t
*
snd_waitq
;
/* Wait-Queue for B-Channel-Send's */
char
msn2eaz
[
10
][
ISDN_MSNLEN
];
/* Mapping-Table MSN->EAZ */
}
driver
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment