From: Johan Hedberg Date: Fri, 19 Dec 2014 20:26:03 +0000 (+0200) Subject: Bluetooth: Add return parameter to cmd_complete callbacks X-Git-Tag: fixes-v4.0-rc1~150^2~303^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9df7465351c00707d7d63a52e01187a6e169fe4a;p=pandora-kernel.git Bluetooth: Add return parameter to cmd_complete callbacks The cmd_complete callbacks for pending mgmt commands may fail e.g. in the case of memory allocation. Previously this error would be caught and returned to user space in the form of a failed write on the mgmt socket (when the error happened in the mgmt command handler) but with the introduction of the generic cmd_complete callback this information was lost. This patch returns the feature by making cmd_complete callbacks return int instead of void. Signed-off-by: Johan Hedberg Signed-off-by: Marcel Holtmann --- Reading git-diff-tree failed