mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-18 10:35:55 +00:00
Simplify disk_alloc().
MFC after: 3 days
This commit is contained in:
parent
4c11f091df
commit
9495476273
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=226735
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user