From: H Hartley Sweeten Date: Wed, 9 Jan 2013 20:29:19 +0000 (-0700) Subject: staging: comedi: comedi_buf: cleanup comedi_buf_munge() X-Git-Tag: v3.9-rc1~127^2~436 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d4be669479d95a0c6eb4b6a538460f0ab35c4f7;p=pandora-kernel.git staging: comedi: comedi_buf: cleanup comedi_buf_munge() Refactor this function so there is a single return point and only one BUG_ON check. The BUG_ON needs to be looked at to see if it can be safely removed. Clarify the test in the munge loop that checks for a block copy that would extend pass the end of the prealloc_buf. Reword the comment about the need for the smp_wmb(). Signed-off-by: H Hartley Sweeten Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed