From: H Hartley Sweeten Date: Wed, 9 Jan 2013 20:29:53 +0000 (-0700) Subject: staging: comedi: comedi_buf: clarify comedi_buf_write_free() X-Git-Tag: v3.9-rc1~127^2~435 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d21af4cbfb7fccbccedc1d9e143a14aee6b1c9ad;p=pandora-kernel.git staging: comedi: comedi_buf: clarify comedi_buf_write_free() Use the helper comedi_buf_write_n_allocated() to clarify the check to make sure the number of bytes to free is not more than the number of bytes allocated. Signed-off-by: H Hartley Sweeten Signed-off-by: Ian Abbott Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed