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 SuperH floppy
driver.
Signed-off-by: Jesper Juhl <jesper.juhl@gmail.com>
---
floppy.h | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/include/asm-sh/floppy.h b/include/asm-sh/floppy.h
index 59fbfdc..afa7f8f 100644
--- a/include/asm-sh/floppy.h
+++ b/include/asm-sh/floppy.h
@@ -54,7 +54,7 @@ static int doing_pdma;
static void floppy_hardint(int irq, void *dev_id, struct pt_regs * regs)
{
- register unsigned char st;
+ unsigned char st;
#undef TRACE_FLPY_INT
@@ -74,8 +74,8 @@ static void floppy_hardint(int irq, void *dev_id, struct pt_regs * regs)
#endif
{
- register int lcount;
- register char *lptr;
+ int lcount;
+ char *lptr;
st = 1;
for(lcount=virtual_dma_count, lptr=virtual_dma_addr;
--
| Greg KH | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 011/196] sysfs: Fix a copy-n-paste typo in comment |
| Greg KH | Re: Linux 2.6.25.10 |
| Sam Ravnborg | Re: [RFC/PATCH] Documentation of kernel messages |
git: | |
| Peter Stahlir | Git as a filesystem |
| Ken Pratt | Re: pack operation is thrashing my server |
| Andy Parkins | svn:externals using git submodules |
| Junio C Hamano | Re: [PATCH] Teach remote machinery about remotes.default config variable |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Mayuresh Kathe | Re: What is our ultimate goal?? |
| Richard Stallman | Real men don't attack straw men |
| L. V. Lammert | Re: How to find all package files |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Mark Lord | Re: 2.6.25-rc8: FTP transfer errors |
| Jarek Poplawski | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Vivek Dasmohapatra | 2.6.24 ipw2200 driver can't be reset after firmware explodes |
