]> err.no Git - linux-2.6/blobdiff - drivers/block/acsi_slm.c
[PATCH] AT91RM9200 Ethernet #1: Link poll
[linux-2.6] / drivers / block / acsi_slm.c
index e3be8c31a74ccb5dbc8ef1005682239cd5d2d667..4cb9c13362874cedbed44c24a2982046d1e74e4c 100644 (file)
@@ -268,7 +268,7 @@ static int slm_get_pagesize( int device, int *w, int *h );
 /************************* End of Prototypes **************************/
 
 
-static struct timer_list slm_timer = TIMER_INITIALIZER(slm_test_ready, 0, 0);
+static DEFINE_TIMER(slm_timer, slm_test_ready, 0, 0);
 
 static struct file_operations slm_fops = {
        .owner =        THIS_MODULE,
@@ -369,8 +369,6 @@ static ssize_t slm_read( struct file *file, char *buf, size_t count,
        int length;
        int end;
 
-       if (count < 0)
-               return( -EINVAL );
        if (!(page = __get_free_page( GFP_KERNEL )))
                return( -ENOMEM );