]> git.michaelhowe.org Git - packages/o/openafs.git/commit
viced: Remove pointless braces
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 30 Mar 2012 18:34:53 +0000 (19:34 +0100)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 12 Feb 2014 16:52:05 +0000 (08:52 -0800)
commitea6e7d76ebc696cc1a18246fc535cae3e76656d0
tree1da34d32fedf441f7f8eed0ce3bbd7ffd1b7a4b2
parentdda87b13a5464aa345b8d405da4afc6ce0c4cd6a
viced: Remove pointless braces

Doing if ((a==b)) is unecessary. It's also potentially dangerous, as
that's the syntax required to do assignment within an if statement.
clang now issues warnings (errors in -Werror mode) when it encounters
these.

Remove pointless braces from viced to make clang happy.

Reviewed-on: http://gerrit.openafs.org/7085
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 6d83b33324b68389d0cb8fee73f3bf3a06e9abe5)

Change-Id: Ied4eb404108e7d8384cc394d5f5e65a04beb17dc
Reviewed-on: http://gerrit.openafs.org/10747
Reviewed-by: D Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/viced/afsfileprocs.c