Commit 9959078c authored by Eli Billauer's avatar Eli Billauer Committed by Greg Kroah-Hartman

staging: xillybus: Removed unnecessary smp_wmb()

These memory barriers were added "just to be safe".
Signed-off-by: default avatarEli Billauer <eli.billauer@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 21fc0b9f
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment