aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-x86/floppy.h
diff options
context:
space:
mode:
authorJesper Juhl <jesper.juhl@gmail.com>2008-03-25 21:16:15 -0400
committerIngo Molnar <mingo@elte.hu>2008-04-17 11:41:30 -0400
commit537e33136443bcd53ee13bc32a8f0fa46b1f3fdb (patch)
treee0604078d67cd580750681aea4e8b768056c0f17 /include/asm-x86/floppy.h
parentdd46e3ca73d136aa7f9f1813e4cbb6934c3611cc (diff)
x86 floppy: kill off the 'register' keyword from header
When compilers became generally better at optimizing code than humans, the register keyword became mostly useless. For the floppy driver it certainly is since it's so slow compared to the rest of the system that optimizing access to a single variable or two isn't going to make any real difference So let's just leave it to the compiler - it'll do a better job anyway. This patch does away with a few register keywords in the x86 floppy driver. Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'include/asm-x86/floppy.h')
-rw-r--r--include/asm-x86/floppy.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/asm-x86/floppy.h b/include/asm-x86/floppy.h
index 438b3033a250..dbe82a5c5eac 100644
--- a/include/asm-x86/floppy.h
+++ b/include/asm-x86/floppy.h
@@ -53,7 +53,7 @@ static int doing_pdma;
53 53
54static irqreturn_t floppy_hardint(int irq, void *dev_id) 54static irqreturn_t floppy_hardint(int irq, void *dev_id)
55{ 55{
56 register unsigned char st; 56 unsigned char st;
57 57
58#undef TRACE_FLPY_INT 58#undef TRACE_FLPY_INT
59 59
@@ -71,8 +71,8 @@ static irqreturn_t floppy_hardint(int irq, void *dev_id)
71#endif 71#endif
72 72
73 { 73 {
74 register int lcount; 74 int lcount;
75 register char *lptr; 75 char *lptr;
76 76
77 st = 1; 77 st = 1;
78 for (lcount = virtual_dma_count, lptr = virtual_dma_addr; 78 for (lcount = virtual_dma_count, lptr = virtual_dma_addr;