mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-05 09:14:03 +00:00
- Remove an unused write_ivars function that didn't do anything anyway.
- Return NULL from mca_alloc_resource() instead of ENOENT if we are passed in an empty resource list.
This commit is contained in:
parent
26379603c0
commit
79bd95a632
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=71239
@ -461,12 +461,6 @@ mca_read_ivar (device_t dev, device_t child, int which, u_long * result)
|
||||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
mca_write_ivar(device_t dev, device_t child, int which, uintptr_t value)
|
||||
{
|
||||
return (EINVAL);
|
||||
}
|
||||
|
||||
static struct resource *
|
||||
mca_alloc_resource (device_t dev, device_t child, int type, int *rid,
|
||||
u_long start, u_long end, u_long count, u_int flags)
|
||||
@ -502,7 +496,7 @@ mca_get_resource_list (device_t dev, device_t child)
|
||||
struct resource_list * rl = &m_dev->rl;
|
||||
|
||||
if (!rl)
|
||||
return (ENOENT);
|
||||
return (NULL);
|
||||
|
||||
return (rl);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user