KPPPInterface.cpp: Fix GCC error

src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPInterface.cpp: In
member function 'void KPPPInterface::CalculateBaudRate()':
src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPInterface.cpp:2018:4:
error: this 'if' clause does not guard...
[-Werror=misleading-indentation]
    if (ChildAt(index)->Ifnet())
    ^~
src/add-ons/kernel/network/ppp/shared/libkernelppp/KPPPInterface.cpp:2020:5:
note: ...this statement, but the latter is misleadingly indented as if
it were guarded by the 'if'
     return;

Signed-off-by: Jaroslaw Pelczar <[email protected]>
Change-Id: I8790a8ea3a961d73073b295ac438f3c60c16fcba
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1759
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jaroslaw Pelczar
2019-08-30 14:02:35 +00:00
committed by waddlesplash
parent e7742a11bd
commit 47d568796d
@@ -2013,10 +2013,12 @@ KPPPInterface::CalculateBaudRate()
Device()->OutputTransferRate());
else {
fIfnet->link_speed = 0;
for (int32 index = 0; index < CountChildren(); index++)
if (ChildAt(index)->Ifnet())
fIfnet->link_speed += ChildAt(index)->Ifnet()->link_speed;
for (int32 index = 0; index < CountChildren(); index++) {
if (ChildAt(index)->Ifnet()) {
fIfnet->link_speed = ChildAt(index)->Ifnet()->link_speed;
return;
}
}
}
}