]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: Refactor stop_discovery
authorAndre Guedes <andre.guedes@openbossa.org>
Tue, 20 Mar 2012 18:15:36 +0000 (15:15 -0300)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 03:41:33 +0000 (00:41 -0300)
commit28f224c15729d040ed0d9bacb5112b96de349dd0
treee3b9f4fb92285fcca599899971e4b0dc665157dc
parent99e4b33811e41341b8155e8cdef5a92a51058a77
Bluetooth: Refactor stop_discovery

This patch does a trivial code refactoring in stop_discovery
function by using a switch statement instead of an if-return-else
approach.

Signed-off-by: Andre Guedes <andre.guedes@openbossa.org>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/mgmt.c