Skip to content

Commit

Permalink
[PATCH] DAC960: use memmove for overlapping areas
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Oct 11, 2006
1 parent 2ecd05a commit 39913b3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/block/DAC960.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 39913b3

Please sign in to comment.