diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2006-10-11 04:22:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-11 14:14:23 -0400 |
commit | 39913b31d0cd11b5b18a303e220c95ffbd9e1a88 (patch) | |
tree | ce9ac4ad5def904c81e846212385d750d2375f89 /drivers/block/DAC960.h | |
parent | 2ecd05ae68a903761e736e9e0aca40d6ace4319e (diff) |
[PATCH] DAC960: use memmove for overlapping areas
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/block/DAC960.h')
-rw-r--r-- | drivers/block/DAC960.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/DAC960.h b/drivers/block/DAC960.h index cec539e601fe..6148073532b2 100644 --- a/drivers/block/DAC960.h +++ b/drivers/block/DAC960.h | |||
@@ -4379,8 +4379,8 @@ static inline void DAC960_P_To_PD_TranslateEnquiry(void *Enquiry) | |||
4379 | static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState) | 4379 | static inline void DAC960_P_To_PD_TranslateDeviceState(void *DeviceState) |
4380 | { | 4380 | { |
4381 | memcpy(DeviceState + 2, DeviceState + 3, 1); | 4381 | memcpy(DeviceState + 2, DeviceState + 3, 1); |
4382 | memcpy(DeviceState + 4, DeviceState + 5, 2); | 4382 | memmove(DeviceState + 4, DeviceState + 5, 2); |
4383 | memcpy(DeviceState + 6, DeviceState + 8, 4); | 4383 | memmove(DeviceState + 6, DeviceState + 8, 4); |
4384 | } | 4384 | } |
4385 | 4385 | ||
4386 | static inline | 4386 | static inline |