]> git.michaelhowe.org Git - packages/o/openafs.git/commit
ptserver: Remove redundant braces
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 30 Mar 2012 18:24:23 +0000 (19:24 +0100)
committerStephan Wiesand <stephan.wiesand@desy.de>
Wed, 29 Jan 2014 17:02:11 +0000 (09:02 -0800)
commit0bb974222e31a7e7cfea1e2c1b15f542b99dbf99
tree7b0067371d7a1e5969871e6f1a53386bd9b0b6f9
parent27f32e81e4fb8bf7219d732fc9bb053234ba4290
ptserver: Remove redundant 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 ptserver to make clang happy.

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

Change-Id: I4aad6766fc759895c8bffc16dde06169589f64ba
Reviewed-on: http://gerrit.openafs.org/10737
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/ptserver/pts.c