diff driver/pt1_pci.c @ 44:07d71b1484a8

suppress warnings
author Yoshiki Yazawa <yaz@honeyplanet.jp>
date Sun, 19 Jul 2009 03:00:15 +0900
parents 51a006a8d843
children 23b6f99f65b2
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;