]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: connection: Return bool from gb_connection_intf_find()
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 10 Jun 2016 09:29:09 +0000 (14:59 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 10 Jun 2016 23:32:33 +0000 (16:32 -0700)
commit54131222e6dc3a26de5cb036e599307666e58fd9
treee5e0e0b153b888658267132d486ea1061893502a
parent60fb3405c73ea0bbab942c699496123f9e987c04
greybus: connection: Return bool from gb_connection_intf_find()

This is used only to check if an existing connection already uses the
cport_id or not and doesn't really need to return pointer to the
connection.

While at it, also rename it to suit its purpose.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c