public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] floppy.c #defines
@ 2001-12-02 12:03 Zwane Mwaikambo
  2001-12-02 12:14 ` Jeff Garzik
  0 siblings, 1 reply; 6+ messages in thread
From: Zwane Mwaikambo @ 2001-12-02 12:03 UTC (permalink / raw)
  To: Linux Kernel; +Cc: bsdlite5

There was more but, all in all floppy.c is a strange place...

Regards,
	Zwane

diffed against 2.5.1-pre5

diff -urN linux-2.5.1-pre5/drivers/block/floppy.c linux-2.5.1-pre5-test/drivers/block/floppy.c
--- linux-2.5.1-pre5/drivers/block/floppy.c	Sun Dec  2 12:57:38 2001
+++ linux-2.5.1-pre5-test/drivers/block/floppy.c	Sun Dec  2 12:58:44 2001
@@ -496,7 +496,7 @@

 #define NO_SIGNAL (!interruptible || !signal_pending(current))
 #define CALL(x) if ((x) == -EINTR) return -EINTR
-#define ECALL(x) if ((ret = (x))) return ret;
+#define ECALL(x) if ((ret = (x))) return ret
 #define _WAIT(x,i) CALL(ret=wait_til_done((x),i))
 #define WAIT(x) _WAIT((x),interruptible)
 #define IWAIT(x) _WAIT((x),1)
@@ -670,7 +670,7 @@
 	else
 		return b;
 }
-#define INFBOUND(a,b) (a)=maximum((a),(b));
+#define INFBOUND(a,b) (a)=maximum((a),(b))

 static int minimum(int a, int b)
 {
@@ -679,7 +679,7 @@
 	else
 		return b;
 }
-#define SUPBOUND(a,b) (a)=minimum((a),(b));
+#define SUPBOUND(a,b) (a)=minimum((a),(b))


 /*
@@ -899,7 +899,7 @@
 #define lock_fdc(drive,interruptible) _lock_fdc(drive,interruptible, __LINE__)

 #define LOCK_FDC(drive,interruptible) \
-if (lock_fdc(drive,interruptible)) return -EINTR;
+if (lock_fdc(drive,interruptible)) return -EINTR


 /* unlocks the driver */
@@ -3506,7 +3506,7 @@
 	/* copyin */
 	CLEARSTRUCT(&inparam);
 	if (_IOC_DIR(cmd) & _IOC_WRITE)
-		ECALL(fd_copyin((void *)param, &inparam, size))
+		ECALL(fd_copyin((void *)param, &inparam, size));

 	switch (cmd) {
 		case FDEJECT:


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2001-12-02 14:28 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-02 12:03 [PATCH] floppy.c #defines Zwane Mwaikambo
2001-12-02 12:14 ` Jeff Garzik
2001-12-02 13:28   ` Zwane Mwaikambo
2001-12-02 13:25     ` Jeff Garzik
2001-12-02 13:59     ` Eric Lammerts
2001-12-02 14:32       ` Zwane Mwaikambo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox