summaryrefslogtreecommitdiffstats
path: root/drivers/staging/greybus/connection.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-01-19 12:51:22 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-01-19 12:17:13 -0800
commit2edbf5ffbf5ef8b92518e57687e96a7d34ddd3c4 (patch)
tree5e23b072a67d2ce85760c54f5c0d167ad4ce46f9 /drivers/staging/greybus/connection.c
parentb807aa7aa51129b1754e7d17f6a2e30e3c6f7a4b (diff)
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>
Diffstat (limited to 'drivers/staging/greybus/connection.c')
-rw-r--r--drivers/staging/greybus/connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/greybus/connection.c b/drivers/staging/greybus/connection.c
index ebd038ea6e8a..d1508e21b378 100644
--- a/drivers/staging/greybus/connection.c
+++ b/drivers/staging/greybus/connection.c
@@ -507,7 +507,7 @@ void gb_connection_destroy(struct gb_connection *connection)
{
struct ida *id_map;
- if (WARN_ON(!connection))
+ if (!connection)
return;
spin_lock_irq(&gb_connections_lock);