ck_pr/gcc: Remove useless assignment from volatile load.

ck_pring
Samy Al Bahra 13 years ago
parent a9ed19303f
commit 1c7b8811c8

@ -33,21 +33,7 @@
#include <ck_stdint.h>
#include <stdbool.h>
#if defined(__x86_64__)
#include "gcc/x86_64/ck_pr.h"
#elif defined(__x86__)
#include "gcc/x86/ck_pr.h"
#elif defined(__sparcv9__)
#include "gcc/sparcv9/ck_pr.h"
#elif defined(__ppc64__)
#include "gcc/ppc64/ck_pr.h"
#elif defined(__ppc__)
#include "gcc/ppc/ck_pr.h"
#elif defined(__GNUC__)
#include "gcc/ck_pr.h"
#else
#error Your platform is unsupported
#endif
#define CK_PR_BIN(K, S, M, T, P, C) \
CK_CC_INLINE static void \

@ -62,8 +62,7 @@ CK_CC_INLINE static void *
ck_pr_load_ptr(const void *target)
{
void *r = CK_PR_ACCESS(*(void **)target);
return r;
return CK_PR_ACCESS(*(void **)target);
}
CK_CC_INLINE static void

Loading…
Cancel
Save