From 9959078c96748effba0a6a7c0fc5a2ec5f738129 Mon Sep 17 00:00:00 2001 From: Eli Billauer Date: Sat, 16 Aug 2014 18:58:00 +0300 Subject: [PATCH] staging: xillybus: Removed unnecessary smp_wmb() These memory barriers were added "just to be safe". Signed-off-by: Eli Billauer Signed-off-by: Greg Kroah-Hartman --- drivers/staging/xillybus/xillybus_core.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/staging/xillybus/xillybus_core.c b/drivers/staging/xillybus/xillybus_core.c index f48e4de0ca3a..8de4fbd50fa2 100644 --- a/drivers/staging/xillybus/xillybus_core.c +++ b/drivers/staging/xillybus/xillybus_core.c @@ -2061,8 +2061,6 @@ int xillybus_endpoint_discovery(struct xilly_endpoint *endpoint) if (rc) goto failed_idt; - smp_wmb(); - rc = xilly_obtain_idt(endpoint); if (rc) @@ -2086,8 +2084,6 @@ int xillybus_endpoint_discovery(struct xilly_endpoint *endpoint) if (rc) goto failed_idt; - smp_wmb(); /* mutex_lock below should suffice, but won't hurt.*/ - /* * endpoint is now completely configured. We put it on the list * available to open() before registering the char device(s) -- 2.30.2