]> gitweb.michael.orlitzky.com - apply-default-acl.git/commit
Eliminate unnecessary intermediate result variables.
authorMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 00:50:42 +0000 (19:50 -0500)
committerMichael Orlitzky <michael@orlitzky.com>
Mon, 26 Feb 2018 19:10:28 +0000 (14:10 -0500)
commitf22034c7b75b7096e6ef26de7a5bc8e12a3f0b07
tree40294f7dcf25a4b2a05c547ec2481074dbaebcc8
parenta7187b9c820583d75581c6fe7e26e38ed9e24f7e
Eliminate unnecessary intermediate result variables.

Before this commit, most library calls looked something like...

  int result = foo(x,y);
  if (result == whatever) {
    ...
  }

and then the "result" variable was never used again. There's no need
to introduce the new name, and it probably only increases
confusion. So, this commit eliminates them all.
src/apply-default-acl.c