git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1b6a73
)
[media] tw68: simplify tw68_buffer_count
author
Hans Verkuil
<hans.verkuil@cisco.com>
Thu, 4 Sep 2014 16:26:52 +0000
(13:26 -0300)
committer
Mauro Carvalho Chehab
<m.chehab@samsung.com>
Mon, 8 Sep 2014 19:40:16 +0000
(16:40 -0300)
The code to calculate the maximum number of buffers allowed in 4 MB
is 1) wrong if PAGE_SIZE != 4096 and 2) unnecessarily complex.
Fix and simplify the code.
Reported-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
No differences found