From: simransinghal Date: Tue, 20 Mar 2018 17:57:51 +0000 (+0530) Subject: common: Remove multiple assignment X-Git-Tag: v13.1.0~19^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7f81c03e3ae4622311e26fe7b053f17867a45d3a;p=ceph.git common: Remove multiple assignment According to Linux kernel coding style there should not be multiple assignments on a single line to make code more readable. Signed-off-by: Simran Singhal --- diff --git a/src/common/TextTable.cc b/src/common/TextTable.cc index 3c09fded605b..c94719a9589b 100644 --- a/src/common/TextTable.cc +++ b/src/common/TextTable.cc @@ -24,7 +24,8 @@ void TextTable::define_column(const string &heading, } void TextTable::clear() { - currow = curcol = 0; + currow = 0; + curcol = 0; indent = 0; row.clear(); // reset widths to heading widths @@ -45,7 +46,8 @@ static string pad(string s, int width, TextTable::Align align) { int lpad, rpad; - lpad = rpad = 0; + lpad = 0; + rpad = 0; switch (align) { case TextTable::LEFT: rpad = width - s.length();