aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@arm.com>2015-04-23 17:17:40 +0100
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-04-23 15:16:16 -0400
commitc7757074839f2cd440521482d76ea180d0d4bdac (patch)
treeb95d52b82aa3aaa30fd48b3d464d5c872ed10991 /net
parentnfs: Remove unneeded casts in nfs (diff)
downloadlinux-dev-c7757074839f2cd440521482d76ea180d0d4bdac.tar.xz
linux-dev-c7757074839f2cd440521482d76ea180d0d4bdac.zip
fs/nfs: fix new compiler warning about boolean in switch
The brand new GCC 5.1.0 warns by default on using a boolean in the switch condition. This results in the following warning: fs/nfs/nfs4proc.c: In function 'nfs4_proc_get_rootfh': fs/nfs/nfs4proc.c:3100:10: warning: switch condition has boolean value [-Wswitch-bool] switch (auth_probe) { ^ This code was obviously using switch to make use of the fall-through semantics (without the usual comment, though). Rewrite that code using if statements to avoid the warning and make the code a bit more readable on the way. Signed-off-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions