X-Git-Url: http://rtime.felk.cvut.cz/gitweb/lincan.git/blobdiff_plain/3e5b474f9cd113def3be02af0cf6d5401a7427c9..659b098309c2bca57ac60a35a1b9900d6f28e74d:/lincan/src/read.c diff --git a/lincan/src/read.c b/lincan/src/read.c index 92fcb68..b179897 100644 --- a/lincan/src/read.c +++ b/lincan/src/read.c @@ -152,11 +152,6 @@ ssize_t can_read(struct file *file, char *buffer, size_t length, loff_t *offset) DEBUGMSG("this will always return zero.\n"); return 0; } - if (length > 8 * sizeof(struct canmsg_t)) { - DEBUGMSG("Reading more than 8 CAN messages, this is not supported.\n"); - DEBUGMSG("Defaulting to 8 messages.\n"); - length = 8 * sizeof(struct canmsg_t); - } /* Initialize hardware pointers */ obj = canuser->msgobj; if (obj == NULL) {