Skip to content

Commit

Permalink
x86 floppy: kill off the 'register' keyword from header
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Juhl authored and Ingo Molnar committed Apr 17, 2008
1 parent dd46e3c commit 537e331
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions include/asm-x86/floppy.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ static int doing_pdma;

static irqreturn_t floppy_hardint(int irq, void *dev_id)
{
register unsigned char st;
unsigned char st;

#undef TRACE_FLPY_INT

Expand All @@ -71,8 +71,8 @@ static irqreturn_t floppy_hardint(int irq, void *dev_id)
#endif

{
register int lcount;
register char *lptr;
int lcount;
char *lptr;

st = 1;
for (lcount = virtual_dma_count, lptr = virtual_dma_addr;
Expand Down

0 comments on commit 537e331

Please sign in to comment.