diff --git a/myisam/mi_check.c b/myisam/mi_check.c
index f27f297b3a49fdf7d37ce006de7d0c21e36f1bf8..b325f350c2b6bd3f858bd74ada06eb17bd5b97f6 100644
--- a/myisam/mi_check.c
+++ b/myisam/mi_check.c
@@ -2109,7 +2109,7 @@ err:
   DESCRIPTION
     Same as mi_repair_by_sort but do it multithreaded
     Each key is handled by a separate thread.
-    TODO: make a number of thread a parameter
+    TODO: make a number of threads a parameter
 
   RESULT
     0	ok
@@ -2358,7 +2358,7 @@ int mi_repair_parallel(MI_CHECK *param, register MI_INFO *info,
   }
   got_error=1;				/* Assume the following may go wrong */
 
-  if (sort_param->fix_datafile)
+  if (sort_param[0].fix_datafile)
   {
     if (write_data_suffix(&sort_info,1) || end_io_cache(&info->rec_cache))
       goto err;
diff --git a/myisam/myisamchk.c b/myisam/myisamchk.c
index 0ac089bd26134d1917ce71a33efda2e0a852d3f8..db03177edfc6f25d882048675f2bddff14d2f108 100644
--- a/myisam/myisamchk.c
+++ b/myisam/myisamchk.c
@@ -219,7 +219,7 @@ static struct my_option my_long_options[] =
   {"recover", 'r',
    "Can fix almost anything except unique keys that aren't unique.",
    0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
-  {"paraller-recover", 'p',
+  {"parallel-recover", 'p',
    "Same as '-r' but creates all the keys in parallel",
    0, 0, 0, GET_NO_ARG, NO_ARG, 0, 0, 0, 0, 0, 0},
   {"safe-recover", 'o',
diff --git a/mysys/mf_iocache.c b/mysys/mf_iocache.c
index 6ad5397e61ff4b5059f600279269c5399d049c11..54513ba73de59824eb2c5efaa317dbe9666906b2 100644
--- a/mysys/mf_iocache.c
+++ b/mysys/mf_iocache.c
@@ -508,7 +508,6 @@ int _my_b_read_r(register IO_CACHE *info, byte *Buffer, uint Count)
     pos_in_file= info->pos_in_file + (uint)(info->read_end - info->buffer);
     diff_length= (uint) (pos_in_file & (IO_SIZE-1));
     length=IO_ROUND_UP(Count+diff_length)-diff_length;
-    length=IO_ROUND_UP(Count+diff_length)-diff_length;
     length=(length <= info->read_length) ?
                    length + IO_ROUND_DN(info->read_length - length) :
                    length - IO_ROUND_UP(length - info->read_length) ;