Whamcloud - gitweb
LU-1644 ptlrpc: fix return type of boolean functions 88/32088/4
authorAndreas Dilger <andreas.dilger@intel.com>
Thu, 19 Apr 2018 18:03:18 +0000 (12:03 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Sat, 12 May 2018 03:52:10 +0000 (03:52 +0000)
commite2cac9fb9baf43f48eb58334fb5044cece5395c0
tree96cd027990a06922a1694c01815fa6e714bf3e85
parent37932c4beb9885593abe63c9e2dc1936648a0b49
LU-1644 ptlrpc: fix return type of boolean functions

Some functions are returning type int with values 0 or 1 when
they could be returning bool.  Fix up the return type of:

    lustre_req_swabbed()
    lustre_rep_swabbed()
    ptlrpc_req_need_swab()
    ptlrpc_rep_need_swab()
    ptlrpc_buf_need_swab()

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I758afbf2d50ee9c0930d3080016803a299ecab07
Reviewed-on: https://review.whamcloud.com/32088
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_net.h
lustre/ptlrpc/pack_generic.c
lustre/ptlrpc/sec_plain.c