staging: xillybus: Removed unnecessary smp_wmb()
authorEli Billauer <eli.billauer@gmail.com>
Sat, 16 Aug 2014 15:58:00 +0000 (18:58 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 30 Aug 2014 20:14:41 +0000 (13:14 -0700)
These memory barriers were added "just to be safe".

Signed-off-by: Eli Billauer <eli.billauer@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/xillybus/xillybus_core.c

index f48e4de0ca3a625f31b3d858b39559a2c9615808..8de4fbd50fa208c28effac534b56f9cceae4619e 100644 (file)
@@ -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)