lkml.org 
[lkml]   [2002]   [Oct]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] 2.5.41 s390 (5/8): superfluous memset.
Date
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/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.034 / U:5.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site