diff options
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/rc-core.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/media/rc-core.h b/include/media/rc-core.h index affb93feed3b..a23c1fc685a1 100644 --- a/include/media/rc-core.h +++ b/include/media/rc-core.h | |||
@@ -206,12 +206,12 @@ static inline u32 ir_extract_bits(u32 data, u32 mask) | |||
206 | u32 vbit = 1, value = 0; | 206 | u32 vbit = 1, value = 0; |
207 | 207 | ||
208 | do { | 208 | do { |
209 | if (mask & 1) { | 209 | if (mask & 1) { |
210 | if (data & 1) | 210 | if (data & 1) |
211 | value |= vbit; | 211 | value |= vbit; |
212 | vbit <<= 1; | 212 | vbit <<= 1; |
213 | } | 213 | } |
214 | data >>= 1; | 214 | data >>= 1; |
215 | } while (mask >>= 1); | 215 | } while (mask >>= 1); |
216 | 216 | ||
217 | return value; | 217 | return value; |