[SCSI] atari_NCR5380: update_timeout removal

Atari SCSI driver fixes: remove update_timeout kludge

Signed-off-by: Michael Schmitz <schmitz@debian.org>
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>

authored by Michael Schmitz and committed by James Bottomley 8ce7955a 94774a3a

+2 -42
+2 -42
drivers/scsi/atari_NCR5380.c
··· 894 894 } 895 895 896 896 /* 897 - * our own old-style timeout update 898 - */ 899 - /* 900 - * The strategy is to cause the timer code to call scsi_times_out() 901 - * when the soonest timeout is pending. 902 - * The arguments are used when we are queueing a new command, because 903 - * we do not want to subtract the time used from this time, but when we 904 - * set the timer, we want to take this value into account. 905 - */ 906 - 907 - int atari_scsi_update_timeout(Scsi_Cmnd * SCset, int timeout) 908 - { 909 - int rtn; 910 - 911 - /* 912 - * We are using the new error handling code to actually register/deregister 913 - * timers for timeout. 914 - */ 915 - 916 - if (!timer_pending(&SCset->eh_timeout)) 917 - rtn = 0; 918 - else 919 - rtn = SCset->eh_timeout.expires - jiffies; 920 - 921 - if (timeout == 0) { 922 - del_timer(&SCset->eh_timeout); 923 - SCset->eh_timeout.data = (unsigned long)NULL; 924 - SCset->eh_timeout.expires = 0; 925 - } else { 926 - if (SCset->eh_timeout.data != (unsigned long)NULL) 927 - del_timer(&SCset->eh_timeout); 928 - SCset->eh_timeout.data = (unsigned long)SCset; 929 - SCset->eh_timeout.expires = jiffies + timeout; 930 - add_timer(&SCset->eh_timeout); 931 - } 932 - return rtn; 933 - } 934 - 935 - /* 936 897 * Function : int NCR5380_queue_command (Scsi_Cmnd *cmd, 937 898 * void (*done)(Scsi_Cmnd *)) 938 899 * ··· 917 956 Scsi_Cmnd *tmp; 918 957 int oldto; 919 958 unsigned long flags; 920 - // extern int update_timeout(Scsi_Cmnd * SCset, int timeout); 921 959 922 960 #if (NDEBUG & NDEBUG_NO_WRITE) 923 961 switch (cmd->cmnd[0]) { ··· 989 1029 * alter queues and touch the lock. 990 1030 */ 991 1031 if (!IS_A_TT()) { 992 - oldto = atari_scsi_update_timeout(cmd, 0); 1032 + /* perhaps stop command timer here */ 993 1033 falcon_get_lock(); 994 - atari_scsi_update_timeout(cmd, oldto); 1034 + /* perhaps restart command timer here */ 995 1035 } 996 1036 if (!(hostdata->issue_queue) || (cmd->cmnd[0] == REQUEST_SENSE)) { 997 1037 LIST(cmd, hostdata->issue_queue);