Simplify disk_alloc().

MFC after:	3 days
This commit is contained in:
Pawel Jakub Dawidek 2011-10-25 14:04:59 +00:00
parent 4c11f091df
commit 9495476273

View File

@ -537,12 +537,10 @@ g_disk_ident_adjust(char *ident, size_t size)
}
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