From: Eli Billauer Date: Sat, 16 Aug 2014 15:58:00 +0000 (+0300) Subject: staging: xillybus: Removed unnecessary smp_wmb() X-Git-Tag: v3.18-rc1~130^2~1091 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=9959078c96748effba0a6a7c0fc5a2ec5f738129;p=karo-tx-linux.git 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 --- 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)