diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2020-11-06 21:50:39 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-11-08 22:28:25 +0100 |
commit | ae2975046dbc65855c217fe6fbd5b33140c5ff18 (patch) | |
tree | 55063f517533075f5e84dbd4b8c064f69926f0fe /include | |
parent | net/sunrpc: return 0 on attempt to write to "transports" (diff) | |
download | linux-ae2975046dbc65855c217fe6fbd5b33140c5ff18.tar.xz linux-ae2975046dbc65855c217fe6fbd5b33140c5ff18.zip |
net/sunrpc: fix useless comparison in proc_do_xprt()
In the original code, the "if (*lenp < 0)" check didn't work because
"*lenp" is unsigned. Fortunately, the memory_read_from_buffer() call
will never fail in this context so it doesn't affect runtime.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions