Commit 772bd0a5 authored by Al Viro's avatar Al Viro Committed by Richard Weinberger

um: kill useless argument of free_chan() and free_one_chan()

delay_free_irq is always 0 for those...
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 966e803a
...@@ -358,11 +358,11 @@ int chan_window_size(struct list_head *chans, unsigned short *rows_out, ...@@ -358,11 +358,11 @@ int chan_window_size(struct list_head *chans, unsigned short *rows_out,
return 0; return 0;
} }
static void free_one_chan(struct chan *chan, int delay_free_irq) static void free_one_chan(struct chan *chan)
{ {
list_del(&chan->list); list_del(&chan->list);
close_one_chan(chan, delay_free_irq); close_one_chan(chan, 0);
if (chan->ops->free != NULL) if (chan->ops->free != NULL)
(*chan->ops->free)(chan->data); (*chan->ops->free)(chan->data);
...@@ -372,14 +372,14 @@ static void free_one_chan(struct chan *chan, int delay_free_irq) ...@@ -372,14 +372,14 @@ static void free_one_chan(struct chan *chan, int delay_free_irq)
kfree(chan); kfree(chan);
} }
static void free_chan(struct list_head *chans, int delay_free_irq) static void free_chan(struct list_head *chans)
{ {
struct list_head *ele, *next; struct list_head *ele, *next;
struct chan *chan; struct chan *chan;
list_for_each_safe(ele, next, chans) { list_for_each_safe(ele, next, chans) {
chan = list_entry(ele, struct chan, list); chan = list_entry(ele, struct chan, list);
free_one_chan(chan, delay_free_irq); free_one_chan(chan);
} }
} }
...@@ -547,7 +547,7 @@ int parse_chan_pair(char *str, struct line *line, int device, ...@@ -547,7 +547,7 @@ int parse_chan_pair(char *str, struct line *line, int device,
char *in, *out; char *in, *out;
if (!list_empty(chans)) { if (!list_empty(chans)) {
free_chan(chans, 0); free_chan(chans);
INIT_LIST_HEAD(chans); INIT_LIST_HEAD(chans);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment