[PATCH] 2.5.41 s390 (5/8): superfluous memset.

Martin Schwidefsky (schwidefsky@de.ibm.com)
Wed, 9 Oct 2002 14:30:25 +0200


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;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/