Remove unneeded NULL as this is initialized with M_ZERO.
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
This commit is contained in:
parent
277a765cf4
commit
243c115e92
@ -195,9 +195,6 @@ filemon_open(struct cdev *dev, int oflags __unused, int devtype __unused,
|
|||||||
if (filemon == NULL) {
|
if (filemon == NULL) {
|
||||||
filemon = malloc(sizeof(struct filemon), M_FILEMON,
|
filemon = malloc(sizeof(struct filemon), M_FILEMON,
|
||||||
M_WAITOK | M_ZERO);
|
M_WAITOK | M_ZERO);
|
||||||
|
|
||||||
filemon->fp = NULL;
|
|
||||||
|
|
||||||
sx_init(&filemon->lock, "filemon");
|
sx_init(&filemon->lock, "filemon");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user