aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/tidspbridge/dynload/reloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/tidspbridge/dynload/reloc.c')
-rw-r--r--drivers/staging/tidspbridge/dynload/reloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/tidspbridge/dynload/reloc.c b/drivers/staging/tidspbridge/dynload/reloc.c
index ec59777dc06..7b28c07ed7c 100644
--- a/drivers/staging/tidspbridge/dynload/reloc.c
+++ b/drivers/staging/tidspbridge/dynload/reloc.c
@@ -107,7 +107,7 @@ int dload_repack(struct dload_state *dlthis, rvalue val, tgt_au_t * data,
107 107
108 fieldsz -= 1; /* avoid nastiness with 32-bit shift of 32-bit value */ 108 fieldsz -= 1; /* avoid nastiness with 32-bit shift of 32-bit value */
109 /* clip the bits */ 109 /* clip the bits */
110 mask = ((UINT32_C(2) << fieldsz) - 1); 110 mask = (2UL << fieldsz) - 1;
111 objval = (val & mask); 111 objval = (val & mask);
112 /* * store the bits through the specified mask */ 112 /* * store the bits through the specified mask */
113 if (TARGET_BIG_ENDIAN) { 113 if (TARGET_BIG_ENDIAN) {