linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] 2.5.41 s390 (5/8): superfluous memset.
@ 2002-10-09 12:30 Martin Schwidefsky
  0 siblings, 0 replies; only message in thread
From: Martin Schwidefsky @ 2002-10-09 12:30 UTC (permalink / raw)
  To: linux-kernel, torvalds

Remove a duplicate memset. That is already done in alloc_disk.

diff -urN linux-2.5.41/drivers/s390/block/dasd_genhd.c linux-2.5.41-s390/drivers/s390/block/dasd_genhd.c
--- linux-2.5.41/drivers/s390/block/dasd_genhd.c	Mon Oct  7 20:24:48 2002
+++ linux-2.5.41-s390/drivers/s390/block/dasd_genhd.c	Wed Oct  9 14:01:35 2002
@@ -195,7 +195,6 @@
 		return ERR_PTR(-ENOMEM);
 
 	/* Initialize gendisk structure. */
-	memset(gdp, 0, sizeof(struct gendisk));
 	gdp->major = mi->major;
 	gdp->first_minor = index << DASD_PARTN_BITS;
 	gdp->minor_shift = DASD_PARTN_BITS;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-09 12:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-09 12:30 [PATCH] 2.5.41 s390 (5/8): superfluous memset Martin Schwidefsky

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).