diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2011-08-18 20:12:39 +0100 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2011-11-02 14:15:28 +0100 |
commit | 772bd0a5a5ebfd37186df086c0f51f676495c4d9 (patch) | |
tree | 542a947aa69650976451980b2253e48710cbca80 /arch/um | |
parent | 966e803ab12538faf2b236dbe83f7fb796a031d6 (diff) | |
download | linux-772bd0a5a5ebfd37186df086c0f51f676495c4d9.tar.gz linux-772bd0a5a5ebfd37186df086c0f51f676495c4d9.tar.bz2 linux-772bd0a5a5ebfd37186df086c0f51f676495c4d9.zip |
um: kill useless argument of free_chan() and free_one_chan()
delay_free_irq is always 0 for those...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um')
-rw-r--r-- | arch/um/drivers/chan_kern.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/um/drivers/chan_kern.c b/arch/um/drivers/chan_kern.c index e0406832df89..420e2c800799 100644 --- a/arch/um/drivers/chan_kern.c +++ b/arch/um/drivers/chan_kern.c @@ -358,11 +358,11 @@ int chan_window_size(struct list_head *chans, unsigned short *rows_out, 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); - close_one_chan(chan, delay_free_irq); + close_one_chan(chan, 0); if (chan->ops->free != NULL) (*chan->ops->free)(chan->data); @@ -372,14 +372,14 @@ static void free_one_chan(struct chan *chan, int delay_free_irq) 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 chan *chan; list_for_each_safe(ele, next, chans) { 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, char *in, *out; if (!list_empty(chans)) { - free_chan(chans, 0); + free_chan(chans); INIT_LIST_HEAD(chans); } |