mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-10-05 22:29:49 +00:00
minor: fixed coding style
This commit is contained in:
parent
6fb248c9e0
commit
0a2eb3fdc8
@ -428,8 +428,9 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment)
|
|||||||
u16_t increment_magnitude;
|
u16_t increment_magnitude;
|
||||||
|
|
||||||
LWIP_ASSERT("p != NULL", p != NULL);
|
LWIP_ASSERT("p != NULL", p != NULL);
|
||||||
if ((header_size_increment == 0) || (p == NULL))
|
if ((header_size_increment == 0) || (p == NULL)) {
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (header_size_increment < 0){
|
if (header_size_increment < 0){
|
||||||
increment_magnitude = -header_size_increment;
|
increment_magnitude = -header_size_increment;
|
||||||
@ -478,8 +479,7 @@ pbuf_header(struct pbuf *p, s16_t header_size_increment)
|
|||||||
* bail out unsuccesfully */
|
* bail out unsuccesfully */
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
/* Unknown type */
|
/* Unknown type */
|
||||||
LWIP_ASSERT("bad pbuf type", 0);
|
LWIP_ASSERT("bad pbuf type", 0);
|
||||||
return 1;
|
return 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user