greybus: connection: silence warning on unbound protocols
authorPerry Hung <perry@leaflabs.com>
Fri, 24 Jul 2015 23:02:30 +0000 (19:02 -0400)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 24 Jul 2015 23:39:58 +0000 (16:39 -0700)
commit52fa38327b39f1d307447023a8eea1f7b7ca0039
treeb98b3246ab3ccf1312ecced24bb58d86ab26c6ae
parente619e8505b66229fdf2735ac00891d340111b0a8
greybus: connection: silence warning on unbound protocols

If a protocol was not successfully created, we can't drop the refcount
on it. This might happen for example if the connection fails to bind a
protocol.

Silences a warning on cleanup.

Signed-off-by: Perry Hung <perry@leaflabs.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/connection.c
drivers/staging/greybus/protocol.c