From: Peter Hurley Date: Mon, 10 Feb 2014 01:59:23 +0000 (-0500) Subject: Bluetooth: Refactor write_room() calculation X-Git-Tag: v3.15-rc1~113^2~159^2^2~130^2~51 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b16b4351313fb89ccb4c227d432d16aa32ffec72;p=pandora-kernel.git Bluetooth: Refactor write_room() calculation Compute the amount of space available for a single write() within rfcomm_room(); clamp to 0 for negative values. Note this patch does not change the result of the computation. Report the amount of room returned in the debug printk. Signed-off-by: Peter Hurley Tested-By: Alexander Holler Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed