afs: fix missing afs_nfs3_dispatcher return value 87/12987/3
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 30 Mar 2018 03:15:47 +0000 (23:15 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Tue, 14 Aug 2018 21:56:50 +0000 (17:56 -0400)
commite7678fb5fb6725055b576b86f6ef994594f0bb92
treea5c6070fca74af516a1b79ab4cb2b3a9c5eece7c
parent388eaec3452ed4b18a95ee34efcbe4cf64814701
afs: fix missing afs_nfs3_dispatcher return value

Fix a missing early return value in the function afs_nfs3_dispatcher.  All
callers check the return code of afs_nfs3_dispatcher and interpret values
greater that 1 to be errors. Return 3 as an error code for this code path,
which is the next available error code in afs_nfs3_dispatcher.

This commit fixes the following Solaris Studio warning message:

    ... warning: function expects to return value: afs_nfs3_dispatcher

Change-Id: I47b545bd57a46c03006b9f031da3647c8a530377
Reviewed-on: https://gerrit.openafs.org/12987
Reviewed-by: Andrew Deason <adeason@sinenomine.net>
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: Michael Meffie <mmeffie@sinenomine.net>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
src/afs/afs_nfsdisp.c