Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
a4f6e098
Commit
a4f6e098
authored
Apr 29, 2015
by
Mike Hibler
Browse files
Lint.
parent
ebf1f61d
Changes
1
Hide whitespace changes
Inline
Side-by-side
clientside/os/imagezip/libndz/rangemap.c
View file @
a4f6e098
...
...
@@ -180,7 +180,6 @@ ndz_rangemap_dealloc(struct ndz_rangemap *map, ndz_addr_t addr, ndz_size_t size)
{
struct
ndz_range
*
prev
,
*
range
,
*
next
;
ndz_addr_t
eaddr
=
addr
+
size
-
1
;
int
ishead
=
0
;
if
(
map
==
NULL
||
eaddr
<
addr
||
addr
<
map
->
loaddr
||
eaddr
>
map
->
hiaddr
)
...
...
@@ -202,10 +201,8 @@ ndz_rangemap_dealloc(struct ndz_rangemap *map, ndz_addr_t addr, ndz_size_t size)
return
EBUSY
;
/* if prev is null we are at the beginning, take note */
if
(
prev
==
NULL
)
{
if
(
prev
==
NULL
)
prev
=
&
map
->
head
;
ishead
=
1
;
}
/*
* If the dealloced range abuts the containing range at either the
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment