From: Richard Palethorpe Date: Thu, 13 Jul 2017 11:06:44 +0200 Subject: [LTP] [PATCH V2 03/14] mem/oom: fix the timeout issue In-Reply-To: References: <20170410100556.4465-1-liwang@redhat.com> <20170410100556.4465-4-liwang@redhat.com> <20170707151137.GF28534@rei.lan> Message-ID: <87lgnsiu3f.fsf@our.domain.is.not.set> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Li Wang writes: > + if (tst_test->timeout) { > + if (tst_test->timeout > 0) > + tst_set_timeout(tst_test->timeout); > + } else { > tst_set_timeout(300); > + } Only a minor nit, but it is easier to read without nesting, so we could have: if (tst_test->timeout > 0) { tst_set_timeout(tst_test->timeout); } else if (tst_test->timeout == 0) { tst_set_timeout(300); } -- Thank you, Richard.