chiark / gitweb /
tree-wide: avoid assignment of r just to use in a comparison
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Apr 2018 11:44:09 +0000 (13:44 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 24 Aug 2018 14:47:08 +0000 (16:47 +0200)
commit10380a7990aeed007a771bcf955e203272bfce54
tree87cf675b459c7a22353c6f42f748cbf231ffcb07
parent71c3693c618189fa097eed1113aa1dd86f032cee
tree-wide: avoid assignment of r just to use in a comparison

This changes
  r = ...;
  if (r < 0)
to
  if (... < 0)
when r will not be used again.
src/basic/capability-util.c
src/core/cgroup.c