]> git.hungrycats.org Git - linux/commitdiff
[PATCH] Fix floppy.h
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 1 Apr 2003 12:53:16 +0000 (04:53 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Tue, 1 Apr 2003 12:53:16 +0000 (04:53 -0800)
CROSS_64KB won't work as advertised due to missing parenthesis.

Pointed out by Joern Engel.

include/asm-i386/floppy.h

index 72f791154a42121d2d1bb79a23bc65ca21e67703..9b6140df91f452dec873669d9b91fe23a0c1afa1 100644 (file)
@@ -22,7 +22,7 @@
  * floppy accesses go through the track buffer.
  */
 #define _CROSS_64KB(a,s,vdma) \
-(!vdma && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))
+(!(vdma) && ((unsigned long)(a)/K_64 != ((unsigned long)(a) + (s) - 1) / K_64))
 
 #define CROSS_64KB(a,s) _CROSS_64KB(a,s,use_virtual_dma & 1)