git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
sound
/
core
/
seq
/
seq_clientmgr.c
diff --git
a/sound/core/seq/seq_clientmgr.c
b/sound/core/seq/seq_clientmgr.c
index
dd7650d
..
b30fda8
100644
(file)
--- a/
sound/core/seq/seq_clientmgr.c
+++ b/
sound/core/seq/seq_clientmgr.c
@@
-420,10
+420,7
@@
static ssize_t snd_seq_read(struct file *file, char __user *buf, size_t count, l
count -= err;
buf += err;
} else {
count -= err;
buf += err;
} else {
- if (copy_to_user(buf, &cell->event, sizeof(snd_seq_event_t))) {
- err = -EFAULT;
- break;
- }
+ copy_to_user(buf, &cell->event, sizeof(snd_seq_event_t));
count -= sizeof(snd_seq_event_t);
buf += sizeof(snd_seq_event_t);
}
count -= sizeof(snd_seq_event_t);
buf += sizeof(snd_seq_event_t);
}