Author: pjd Date: Tue Oct 25 14:04:59 2011 New Revision: 226735 URL: http://svn.freebsd.org/changeset/base/226735
Log: Simplify disk_alloc(). MFC after: 3 days Modified: head/sys/geom/geom_disk.c Modified: head/sys/geom/geom_disk.c ============================================================================== --- head/sys/geom/geom_disk.c Tue Oct 25 14:01:17 2011 (r226734) +++ head/sys/geom/geom_disk.c Tue Oct 25 14:04:59 2011 (r226735) @@ -537,12 +537,10 @@ g_disk_ident_adjust(char *ident, size_t } struct disk * -disk_alloc() +disk_alloc(void) { - struct disk *dp; - dp = g_malloc(sizeof *dp, M_WAITOK | M_ZERO); - return (dp); + return (g_malloc(sizeof(struct disk), M_WAITOK | M_ZERO)); } void _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"