From: Johan Hedberg Date: Sat, 19 Feb 2011 15:06:02 +0000 (-0300) Subject: Bluetooth: Fix unnecessary list traversal in mgmt_pending_remove X-Git-Tag: v2.6.39-rc1~468^2~88^2^2~48^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a664b5bc77fbc80c163de5606114659d3cbeb043;p=pandora-kernel.git Bluetooth: Fix unnecessary list traversal in mgmt_pending_remove All of the places that need to call mgmt_pending_remove already have a pointer to the pending command, so searching for the command in the list doesn't make sense. The added benefit is that many places that previously had to call list_del + mgmt_pending_free can just call mgmt_pending_remove now. Signed-off-by: Johan Hedberg Signed-off-by: Gustavo F. Padovan --- Reading git-diff-tree failed