git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
media: don't do a 31 bit shift on a signed int
[sfrench/cifs-2.6.git]
/
drivers
/
media
/
platform
/
s5p-mfc
/
s5p_mfc_opr_v6.c
diff --git
a/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
b/drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
index f7621a9051cbb6b269cd0fa03d64bc87c09f98a4..a1453053e31aba1ee1b57e16835e04648ee8a51c 100644
(file)
--- a/
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
+++ b/
drivers/media/platform/s5p-mfc/s5p_mfc_opr_v6.c
@@
-840,7
+840,7
@@
static int s5p_mfc_set_enc_params(struct s5p_mfc_ctx *ctx)
if (p->pad) {
reg = 0;
/** enable */
- reg |= (1 << 31);
+ reg |= (1
UL
<< 31);
/** cr value */
reg |= ((p->pad_cr & 0xFF) << 16);
/** cb value */