mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-29 03:14:04 +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;
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user