minor: fixed coding style

This commit is contained in:
goldsimon 2010-03-22 15:45:34 +00:00
parent 6fb248c9e0
commit 0a2eb3fdc8

View File

@ -428,8 +428,9 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment)
u16_t increment_magnitude;
LWIP_ASSERT("p != NULL", p != NULL);
if ((header_size_increment == 0) || (p == NULL))
if ((header_size_increment == 0) || (p == NULL)) {
return 0;
}
if (header_size_increment < 0){
increment_magnitude = -header_size_increment;
@ -478,8 +479,7 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment)
* bail out unsuccesfully */
return 1;
}
}
else {
} else {
/* Unknown type */
LWIP_ASSERT("bad pbuf type", 0);
return 1;