mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] DAC960: use memmove for overlapping areas
Signed-off-by: Alexey Dobriyan <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2ecd05ae68
commit
39913b31d0
1 changed files with 2 additions and 2 deletions
|
|
@ -4379,8 +4379,8 @@ static inline void DAC960_P_To_PD_TranslateEnquiry(void *Enquiry)
|
|||
static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState)
|
||||
{
|
||||
memcpy(DeviceState + 2, DeviceState + 3, 1);
|
||||
memcpy(DeviceState + 4, DeviceState + 5, 2);
|
||||
memcpy(DeviceState + 6, DeviceState + 8, 4);
|
||||
memmove(DeviceState + 4, DeviceState + 5, 2);
|
||||
memmove(DeviceState + 6, DeviceState + 8, 4);
|
||||
}
|
||||
|
||||
static inline
|
||||
|
|
|
|||
Loading…
Reference in a new issue