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

From: Martin Schwidefsky (schwidefsky@de.ibm.com)
Date: Wed Oct 09 2002 - 07:30:25 EST


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/



This archive was generated by hypermail 2b29 : Tue Oct 15 2002 - 22:00:30 EST