提交 39913b31 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

[PATCH] DAC960: use memmove for overlapping areas

Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 2ecd05ae
...@@ -4379,8 +4379,8 @@ static inline void DAC960_P_To_PD_TranslateEnquiry(void *Enquiry) ...@@ -4379,8 +4379,8 @@ static inline void DAC960_P_To_PD_TranslateEnquiry(void *Enquiry)
static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState) static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState)
{ {
memcpy(DeviceState + 2, DeviceState + 3, 1); memcpy(DeviceState + 2, DeviceState + 3, 1);
memcpy(DeviceState + 4, DeviceState + 5, 2); memmove(DeviceState + 4, DeviceState + 5, 2);
memcpy(DeviceState + 6, DeviceState + 8, 4); memmove(DeviceState + 6, DeviceState + 8, 4);
} }
static inline static inline
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册