]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: connection: remove WARN_ON from destroy
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 19 Jan 2016 11:51:22 +0000 (12:51 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 19 Jan 2016 20:17:13 +0000 (12:17 -0800)
commit2edbf5ffbf5ef8b92518e57687e96a7d34ddd3c4
tree5e23b072a67d2ce85760c54f5c0d167ad4ce46f9
parentb807aa7aa51129b1754e7d17f6a2e30e3c6f7a4b
greybus: connection: remove WARN_ON from destroy

Remove WARN_ON from connection destroy testing for a NULL-connection
when destroying a connection.

This will allow for simpler driver code when releasing driver-managed
connections.

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