diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2019-09-02 23:55:32 +0200 |
---|---|---|
committer | Joe Hershberger <joe.hershberger@ni.com> | 2019-09-04 11:37:19 -0500 |
commit | 15eea9a1a8166b4bbab6c02cc426a7cc806ea2ca (patch) | |
tree | 42c2218d2fb891a3ef2625dcb26507b6ac6cf3c3 /include/zfs/zfs_acl.h | |
parent | cccc05ee3b9f575b567437d4146af0dee40c68ba (diff) |
net: nfs: remove superfluous conversions
rpc_pkt.u.call.data is an array of uint32_t. There is no need to convert
it to uint32_t *.
memcpy() expects void * as it 1st and 2nd argument. There is no point in
converting pointers to char * before passing them to memcpy().
In ntohl(data[1]) != 0 calling ntohl() is superfluous. If the value is
zero, does not depend on the byte order.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/zfs/zfs_acl.h')
0 files changed, 0 insertions, 0 deletions