OSDN Git Service

Change argument to return ptr rather than assign to unused local
authorMike J. Chen <mjchen@google.com>
Fri, 31 Jan 2014 23:06:49 +0000 (15:06 -0800)
committerMike J. Chen <mjchen@google.com>
Sat, 1 Feb 2014 02:51:42 +0000 (18:51 -0800)
commite68ffb0c2430f02c7e21ebbebdbf76a7e907350e
tree07da85ec993738afaaebad73f22382cdb5ea5918
parentd6750ef014c13bbfebc88a7b6789579b919e1bec
Change argument to return ptr rather than assign to unused local

There was a warning about local variable assigned but not used.
I believe this was actually an implementation and API problem.
The function is called "btm_sec_find_bonded_dev" and returns
a BOOLEAN about whether the search succeeded or not.  I believe
it should also return a pointer to the dev rec if the search
succeeded, but due to an API definition error, it was just
assigning a local rather than returning the pointer ot the rec.

Also add to btm_int.h a function prototype that was missing
and causing a warning about implicit declaration.

Change-Id: Ifcef3afe3acbe12f4c69472fcedd01b268f644dd
Signed-off-by: Mike J. Chen <mjchen@google.com>
stack/btm/btm_int.h
stack/btm/btm_sec.c