]> rtime.felk.cvut.cz Git - lincan.git/blobdiff - lincan/src/read.c
Added support for local message processing and some cleanups.
[lincan.git] / lincan / src / read.c
index 92fcb6894b3178a2da01637f81b2a8c803df97ec..b1798974bc43c948b7185a7fefe67e6e267dbdf5 100644 (file)
@@ -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) {