chiark / gitweb /
bootchart: remove duplicated code, prevent creating empty files
authorShawn Landden <shawn@churchofgit.com>
Mon, 23 Mar 2015 10:48:41 +0000 (03:48 -0700)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Mar 2015 04:12:03 +0000 (00:12 -0400)
commitb53a2485a43a59f3a8e45baabac6fc84a53cb3e6
tree8f2c9110eb9247f18dbb8fd3129c169bbf6121b2
parentfb02a2775a65198db606d8fc3a03852ce843378f
bootchart: remove duplicated code, prevent creating empty files

In Debian and rawhide Fedora, which have CONFIG_SCHEDSTATS=n,
bootchart creates empty files in /run/log before printing an error.
Stop doing that.

Moreover this duplicated part of the code doesn't even have error checking
so there is no error avoided by doing this early.

Reported-by: tfirg_ on IRC
src/bootchart/bootchart.c