From 2edbf5ffbf5ef8b92518e57687e96a7d34ddd3c4 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 19 Jan 2016 12:51:22 +0100 Subject: [PATCH] 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 Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/connection.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.20.1