changeset 44:07d71b1484a8

suppress warnings
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 19 Jul 2009 03:00:15 +0900
parents 9b36fdf7d5d0
children 05424917a022
files driver/pt1_pci.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/driver/pt1_pci.c	Fri Jul 10 22:36:06 2009 +0900
+++ b/driver/pt1_pci.c	Sun Jul 19 03:00:15 2009 +0900
@@ -407,13 +407,13 @@
 			// リングバッファの境界を越える場合
 			tmp_size = channel->maxsize - channel->pointer;
 			// 境界までコピー
-			copy_to_user(buf, &channel->buf[channel->pointer], tmp_size);
+			dummy = copy_to_user(buf, &channel->buf[channel->pointer], tmp_size);
 			// 残りをコピー
-			copy_to_user(&buf[tmp_size], channel->buf, size - tmp_size);
+			dummy = copy_to_user(&buf[tmp_size], channel->buf, size - tmp_size);
 			channel->pointer = size - tmp_size;
 		} else {
 			// 普通にコピー
-			copy_to_user(buf, &channel->buf[channel->pointer], size);
+			dummy = copy_to_user(buf, &channel->buf[channel->pointer], size);
 			channel->pointer += size;
 		}
 		channel->size -= size;