]> git.michaelhowe.org Git - packages/o/openafs.git/commit
vol: Remove unneeded braces
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 30 Mar 2012 18:30:18 +0000 (19:30 +0100)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 29 Jan 2014 17:06:05 +0000 (09:06 -0800)
commitbdb61cc567939386c3685f15ef2ac47bcff8f9ae
tree42c583fcb387308284f0b71efdd534a38d0b9c33
parent0bb974222e31a7e7cfea1e2c1b15f542b99dbf99
vol: Remove unneeded 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 vol to make clang happy.

Reviewed-on: http://gerrit.openafs.org/7082
Reviewed-by: Derrick Brashear <shadow@dementix.org>
Tested-by: Derrick Brashear <shadow@dementix.org>
(cherry picked from commit 58be19d792e6b8e93fbd49bc4ef04bbb8f4560ef)

Change-Id: Ie2fd97927eace8a9317598c1b44d2c2610cdc31a
Reviewed-on: http://gerrit.openafs.org/10739
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Stephan Wiesand <stephan.wiesand@desy.de>
src/vol/volume.c