From: Hans Verkuil Date: Thu, 4 Sep 2014 16:26:52 +0000 (-0300) Subject: [media] tw68: simplify tw68_buffer_count X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~214 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=947b38bb110c90e0bc93e7afe9ab6f007b6799a7;p=pandora-kernel.git [media] tw68: simplify tw68_buffer_count 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 Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed