diff options
author | Robert P. J. Day <rpjday@mindspring.com> | 2007-02-10 01:45:46 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-02-11 10:51:31 -0800 |
commit | aa58d61d18b89b98521364550b481fd9bd18c3b6 (patch) | |
tree | 26f6fd9cbaf6bc3c7d940d33069b3b701cc41e72 /drivers/scsi/53c7xx.c | |
parent | 78ba2faf71c63990cba9997f18cf1d610e06e3f2 (diff) | |
download | op-kernel-dev-aa58d61d18b89b98521364550b481fd9bd18c3b6.zip op-kernel-dev-aa58d61d18b89b98521364550b481fd9bd18c3b6.tar.gz |
[PATCH] Get rid of "double zeroing" of allocated pages
Simplify the few instances where a call to "get_zeroed_page()" is closely
followed by an unnecessary call to memset() to clear that page.
Signed-off-by: Robert P. J. Day <rpjday@mindspring.com>
Cc: chas williams <chas@cmf.nrl.navy.mil>
Acked-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/scsi/53c7xx.c')
-rw-r--r-- | drivers/scsi/53c7xx.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/scsi/53c7xx.c b/drivers/scsi/53c7xx.c index 640536e..9c37943 100644 --- a/drivers/scsi/53c7xx.c +++ b/drivers/scsi/53c7xx.c @@ -3099,7 +3099,6 @@ allocate_cmd (Scsi_Cmnd *cmd) { real = get_zeroed_page(GFP_ATOMIC); if (real == 0) return NULL; - memset((void *)real, 0, 4096); cache_push(virt_to_phys((void *)real), 4096); cache_clear(virt_to_phys((void *)real), 4096); kernel_set_cachemode((void *)real, 4096, IOMAP_NOCACHE_SER); |