diff options
author | Stefan Beller <stefanbeller@googlemail.com> | 2013-12-30 00:09:56 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-12-30 19:10:22 +0100 |
commit | 226b735a745c1e9bbab24b47460d7304def9d38f (patch) | |
tree | 7cc3e19eff70cf7e32883208b6270fdbfef917ef /src/bootchart/svg.h | |
parent | 818156512411835a4a7f070e6fec3d7b80e1f629 (diff) |
bootchart: Remove unneeded check for NULL
Directly before the changed line there is:
while ((parent->next_ps && parent->pid != ps->ppid))
parent = parent->next_ps;
which looks one element ahead of the list, hence we can rely on parent
being non null here.
If 'parent' were NULL at that while loop already, it would crash as we're
dereferencing 'parent' when checking for next_ps already.
Signed-off-by: Stefan Beller <stefanbeller@googlemail.com>
Diffstat (limited to 'src/bootchart/svg.h')
0 files changed, 0 insertions, 0 deletions